Skip to content

Commit

Permalink
refs #5167. Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Aug 30, 2012
1 parent f6cf5c0 commit 3ed87e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/MantidQt/SliceViewer/src/SliceViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2082,13 +2082,13 @@ void SliceViewer::peakOverlay_toggled(bool checked)
{
IPeaksWorkspace_sptr peaksWS = AnalysisDataService::Instance().retrieveWS<IPeaksWorkspace>(list.front().toStdString());
PeakOverlayFactory* factory = new PeakOverlayFactory(m_plot, m_plot->canvas(), PeakDimensions::HKLView);
m_peaksPresenter = boost::make_shared<ConcretePeaksPresenter>(factory, peaksWS);
m_peaksPresenter = PeaksPresenter_sptr(new ConcretePeaksPresenter(factory, peaksWS));
}
}
}
else
{
m_peaksPresenter = boost::make_shared<NullPeaksPresenter>();
m_peaksPresenter = PeaksPresenter_sptr(new NullPeaksPresenter);
}
}

Expand Down

0 comments on commit 3ed87e6

Please sign in to comment.