comparison Plugin/PluginContext.cpp @ 25:dfc43678aecb

replacing deprecated std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 06 Jul 2020 16:25:56 +0200
parents 17f775299b4a
children 44a0430d7899
comparison
equal deleted inserted replaced
24:065bc476bcdc 25:dfc43678aecb
17 **/ 17 **/
18 18
19 19
20 #include "PluginContext.h" 20 #include "PluginContext.h"
21 21
22 #include <Compatibility.h> // For std::unique_ptr
22 #include <Logging.h> 23 #include <Logging.h>
23 24
24 25
25 namespace OrthancPlugins 26 namespace OrthancPlugins
26 { 27 {
48 LOG(INFO) << "Transfers accelerator will retry " 49 LOG(INFO) << "Transfers accelerator will retry "
49 << maxHttpRetries_ << " time(s) if some HTTP query fails"; 50 << maxHttpRetries_ << " time(s) if some HTTP query fails";
50 } 51 }
51 52
52 53
53 std::auto_ptr<PluginContext>& PluginContext::GetSingleton() 54 std::unique_ptr<PluginContext>& PluginContext::GetSingleton()
54 { 55 {
55 static std::auto_ptr<PluginContext> singleton_; 56 static std::unique_ptr<PluginContext> singleton_;
56 return singleton_; 57 return singleton_;
57 } 58 }
58 59
59 60
60 void PluginContext::Initialize(size_t threadsCount, 61 void PluginContext::Initialize(size_t threadsCount,