Mercurial > hg > orthanc-stone
comparison 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 |
comparison
equal
deleted
inserted
replaced
1308:adf234ecaa00 | 1309:1f877e0846fe |
---|---|
64 } | 64 } |
65 | 65 |
66 | 66 |
67 ViewportController::ViewportController(IViewport& viewport) | 67 ViewportController::ViewportController(IViewport& viewport) |
68 : viewport_(viewport) | 68 : viewport_(viewport) |
69 , undoStackW_(boost::make_shared<OrthancStone::UndoStack>()) | 69 , undoStackW_(boost::shared_ptr<UndoStack>(new UndoStack())) |
70 | |
70 , scene_(new Scene2D) | 71 , scene_(new Scene2D) |
71 , canvasToSceneFactor_(1) | 72 , canvasToSceneFactor_(1) |
72 { | 73 { |
73 } | 74 } |
74 | 75 |
75 ViewportController::ViewportController(IViewport& viewport, | 76 ViewportController::ViewportController(IViewport& viewport, |
76 const Scene2D& scene) | 77 const Scene2D& scene) |
77 : viewport_(viewport) | 78 : viewport_(viewport) |
78 , undoStackW_(boost::make_shared<OrthancStone::UndoStack>()) | 79 , undoStackW_(boost::shared_ptr<UndoStack>(new UndoStack())) |
79 , scene_(scene.Clone()) | 80 , scene_(scene.Clone()) |
80 , canvasToSceneFactor_(1) | 81 , canvasToSceneFactor_(1) |
81 { | 82 { |
82 } | 83 } |
83 | 84 |