changeset 788:e76c4eef1054

Merge from default
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 27 May 2019 16:01:47 +0200
parents 1a28fce57ff3 (diff) cd13a062c9bd (current diff)
children c83a45f864b2
files Samples/Sdl/Loader.cpp
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Samples/Sdl/Loader.cpp	Mon May 27 15:54:53 2019 +0200
+++ b/Samples/Sdl/Loader.cpp	Mon May 27 16:01:47 2019 +0200
@@ -46,6 +46,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	Mon May 27 15:54:53 2019 +0200
+++ b/Samples/Sdl/TrackerSampleApp.cpp	Mon May 27 16:01:47 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());