comparison Applications/Sdl/SdlStoneApplicationRunner.cpp @ 1073:8d3936f06541 broker

fix for older gcc
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 17 Oct 2019 11:27:51 +0200
parents 04a95ee91327
children 0ca50d275b9a
comparison
equal deleted inserted replaced
1070:d7887f88710f 1073:8d3936f06541
32 #include <Core/HttpClient.h> 32 #include <Core/HttpClient.h>
33 #include <Core/Toolbox.h> 33 #include <Core/Toolbox.h>
34 #include <Core/OrthancException.h> 34 #include <Core/OrthancException.h>
35 #include <Plugins/Samples/Common/OrthancHttpConnection.h> 35 #include <Plugins/Samples/Common/OrthancHttpConnection.h>
36 36
37 #include <boost/make_shared.hpp>
38 #include <boost/program_options.hpp> 37 #include <boost/program_options.hpp>
39 38
40 namespace OrthancStone 39 namespace OrthancStone
41 { 40 {
42 void SdlStoneApplicationRunner::Initialize() 41 void SdlStoneApplicationRunner::Initialize()
102 **************************************************************/ 101 **************************************************************/
103 102
104 LOG(WARNING) << "Starting the application"; 103 LOG(WARNING) << "Starting the application";
105 104
106 SdlWindow window(title.c_str(), width_, height_, enableOpenGl_); 105 SdlWindow window(title.c_str(), width_, height_, enableOpenGl_);
107 boost::shared_ptr<SdlEngine> sdl(boost::make_shared<SdlEngine>(window, context)); 106 boost::shared_ptr<SdlEngine> sdl(new SdlEngine(window, context));
108 107
109 { 108 {
110 NativeStoneApplicationContext::GlobalMutexLocker locker(context); 109 NativeStoneApplicationContext::GlobalMutexLocker locker(context);
111 110
112 sdl->Register<Deprecated::IViewport::ViewportChangedMessage> 111 sdl->Register<Deprecated::IViewport::ViewportChangedMessage>