diff Framework/Scene2DViewport/ViewportController.cpp @ 1309:1f877e0846fe broker

Fixed some warnings + fixed build for C++03
author Benjamin Golinvaux <bgo@osimis.io>
date Wed, 04 Mar 2020 13:20:12 +0100
parents 8a28a9bf8876
children ab81ee8fce1f
line wrap: on
line diff
--- a/Framework/Scene2DViewport/ViewportController.cpp	Wed Mar 04 10:21:54 2020 +0100
+++ b/Framework/Scene2DViewport/ViewportController.cpp	Wed Mar 04 13:20:12 2020 +0100
@@ -66,7 +66,8 @@
 
   ViewportController::ViewportController(IViewport& viewport) 
     : viewport_(viewport)
-    , undoStackW_(boost::make_shared<OrthancStone::UndoStack>())
+    , undoStackW_(boost::shared_ptr<UndoStack>(new UndoStack()))
+
     , scene_(new Scene2D)
     , canvasToSceneFactor_(1)
   {
@@ -75,7 +76,7 @@
   ViewportController::ViewportController(IViewport& viewport,
                                          const Scene2D& scene)
     : viewport_(viewport)
-    , undoStackW_(boost::make_shared<OrthancStone::UndoStack>())
+    , undoStackW_(boost::shared_ptr<UndoStack>(new UndoStack()))
     , scene_(scene.Clone())
     , canvasToSceneFactor_(1)
   {