diff OrthancServer/ServerContext.h @ 3712:2a170a8f1faf

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 15:32:45 +0100
parents 4182cde57afb
children 56f2397f027a
line wrap: on
line diff
--- a/OrthancServer/ServerContext.h	Fri Feb 28 13:23:11 2020 +0100
+++ b/OrthancServer/ServerContext.h	Mon Mar 02 15:32:45 2020 +0100
@@ -183,7 +183,7 @@
     LuaScripting mainLua_;
     LuaScripting filterLua_;
     LuaServerListener  luaListener_;
-    std::auto_ptr<SharedArchive>  mediaArchive_;
+    std::unique_ptr<SharedArchive>  mediaArchive_;
     
     // The "JobsEngine" must be *after* "LuaScripting", as
     // "LuaScripting" embeds "LuaJobManager" that registers as an
@@ -206,7 +206,7 @@
     boost::thread  changeThread_;
     boost::thread  saveJobsThread_;
         
-    std::auto_ptr<SharedArchive>  queryRetrieveArchive_;
+    std::unique_ptr<SharedArchive>  queryRetrieveArchive_;
     std::string defaultLocalAet_;
     OrthancHttpHandler  httpHandler_;
     bool saveJobs_;
@@ -214,7 +214,7 @@
     unsigned int limitFindInstances_;
     unsigned int limitFindResults_;
 
-    std::auto_ptr<MetricsRegistry>  metricsRegistry_;
+    std::unique_ptr<MetricsRegistry>  metricsRegistry_;
     bool isHttpServerSecure_;
     bool isExecuteLuaEnabled_;