changeset 789:c83a45f864b2

Merge
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 28 May 2019 08:15:38 +0200
parents e76c4eef1054 (diff) 5aa728500586 (current diff)
children 907189734acd 20262f5e5e88
files Samples/Sdl/Loader.cpp
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Samples/Sdl/Loader.cpp	Tue May 28 07:48:57 2019 +0200
+++ b/Samples/Sdl/Loader.cpp	Tue May 28 08:15:38 2019 +0200
@@ -47,6 +47,7 @@
 #include <Core/Images/Image.h>
 #include <Core/Images/ImageProcessing.h>
 #include <Core/Images/PngWriter.h>
+#include <Core/Endianness.h>
 #include <Core/Logging.h>
 #include <Core/OrthancException.h>
 #include <Core/SystemToolbox.h>
--- a/Samples/Sdl/TrackerSampleApp.cpp	Tue May 28 07:48:57 2019 +0200
+++ b/Samples/Sdl/TrackerSampleApp.cpp	Tue May 28 08:15:38 2019 +0200
@@ -40,7 +40,10 @@
 #include <Core/Images/ImageProcessing.h>
 #include <Core/Images/PngWriter.h>
 
+#include <boost/ref.hpp>
+#include <boost/make_shared.hpp>
 #include <SDL.h>
+
 #include <stdio.h>
 
 using namespace Orthanc;
@@ -200,7 +203,7 @@
       {
         CreateLineMeasureCommandPtr cmd = 
           boost::make_shared<CreateLineMeasureCommand>(
-            IObserver::GetBroker(),
+		  boost::ref(IObserver::GetBroker()),
             controller_,
             GetRandomPointInScene());
         cmd->SetEnd(GetRandomPointInScene());
@@ -212,7 +215,7 @@
       {
       CreateAngleMeasureCommandPtr cmd =
         boost::make_shared<CreateAngleMeasureCommand>(
-          IObserver::GetBroker(),
+          boost::ref(IObserver::GetBroker()),
           controller_,
           GetRandomPointInScene());
         cmd->SetCenter(GetRandomPointInScene());