changeset 1724:7b17090ed2ab

fix warning
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 01 Dec 2020 17:07:32 +0100
parents 81273beabc9f
children c8d0ffb3047d
files OrthancStone/Sources/Scene2DViewport/ViewportController.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancStone/Sources/Scene2DViewport/ViewportController.cpp	Tue Dec 01 16:54:01 2020 +0100
+++ b/OrthancStone/Sources/Scene2DViewport/ViewportController.cpp	Tue Dec 01 17:07:32 2020 +0100
@@ -30,8 +30,8 @@
 namespace OrthancStone
 {
   ViewportController::ViewportController(boost::weak_ptr<IViewport> viewport)
-    : viewport_(viewport)
-    , scene_(new Scene2D)
+    : scene_(new Scene2D)
+    , viewport_(viewport)
     , canvasToSceneFactor_(1)
   {
     // undoStack_ is not default-initialized, which basically means empty.