diff Applications/Generic/NativeStoneApplicationRunner.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
line wrap: on
line diff
--- a/Applications/Generic/NativeStoneApplicationRunner.cpp	Tue Oct 15 21:28:46 2019 +0200
+++ b/Applications/Generic/NativeStoneApplicationRunner.cpp	Thu Oct 17 11:27:51 2019 +0200
@@ -36,7 +36,6 @@
 #include <Core/OrthancException.h>
 #include <Plugins/Samples/Common/OrthancHttpConnection.h>
 
-#include <boost/make_shared.hpp>
 #include <boost/program_options.hpp>
 
 namespace OrthancStone
@@ -207,7 +206,9 @@
         oracle.Start();
 
         {
-          context.SetWebService(boost::make_shared<Deprecated::OracleWebService>(oracle, webServiceParameters, context));
+          boost::shared_ptr<Deprecated::OracleWebService> webService
+            (new Deprecated::OracleWebService(oracle, webServiceParameters, context));
+          context.SetWebService(webService);
           context.SetOrthancBaseUrl(webServiceParameters.GetUrl());
 
           Deprecated::OracleDelayedCallExecutor delayedExecutor(oracle, context);