Mercurial > hg > orthanc-stone
diff Framework/Scene2DViewport/ViewportController.h @ 1299:c38c89684d83 broker
replacing std::auto_ptr by std::unique_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Mar 2020 17:21:24 +0100 |
parents | 7ec8fea061b9 |
children | adf234ecaa00 |
line wrap: on
line diff
--- a/Framework/Scene2DViewport/ViewportController.h Sun Feb 23 15:32:24 2020 +0100 +++ b/Framework/Scene2DViewport/ViewportController.h Mon Mar 02 17:21:24 2020 +0100 @@ -26,6 +26,8 @@ #include "../Scene2D/Scene2D.h" #include "../Scene2DViewport/IFlexiblePointerTracker.h" +#include <Core/Compatibility.h> + #include <boost/enable_shared_from_this.hpp> #include <stack> @@ -231,9 +233,9 @@ boost::weak_ptr<UndoStack> undoStackW_; // Global stack, possibly shared by all viewports std::vector<boost::shared_ptr<MeasureTool> > measureTools_; - boost::shared_ptr<IFlexiblePointerTracker> activeTracker_; // TODO - Couldn't this be a "std::auto_ptr"? + boost::shared_ptr<IFlexiblePointerTracker> activeTracker_; // TODO - Couldn't this be a "std::unique_ptr"? - std::auto_ptr<Scene2D> scene_; + std::unique_ptr<Scene2D> scene_; // this is cached double canvasToSceneFactor_;