changeset 787:1a28fce57ff3

Fixed Visual Studio 2008 build
author Benjamin Golinvaux <bgo@osimis.io>
date Fri, 24 May 2019 16:13:50 +0200
parents cf1102295ae5
children e76c4eef1054
files Samples/Sdl/Loader.cpp Samples/Sdl/TrackerSampleApp.cpp
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Samples/Sdl/Loader.cpp	Fri May 24 16:00:24 2019 +0200
+++ b/Samples/Sdl/Loader.cpp	Fri May 24 16:13:50 2019 +0200
@@ -45,6 +45,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	Fri May 24 16:00:24 2019 +0200
+++ b/Samples/Sdl/TrackerSampleApp.cpp	Fri May 24 16:13:50 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());