comparison Plugin/PluginContext.h @ 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
20 #pragma once 20 #pragma once
21 21
22 #include "../Framework/OrthancInstancesCache.h" 22 #include "../Framework/OrthancInstancesCache.h"
23 #include "../Framework/PushMode/ActivePushTransactions.h" 23 #include "../Framework/PushMode/ActivePushTransactions.h"
24 24
25 #include <Compatibility.h> // For std::unique_ptr
25 #include <MultiThreading/Semaphore.h> 26 #include <MultiThreading/Semaphore.h>
26 27
27 #include <map> 28 #include <map>
28 29
29 namespace OrthancPlugins 30 namespace OrthancPlugins
46 size_t targetBucketSize, 47 size_t targetBucketSize,
47 size_t maxPushTransactions, 48 size_t maxPushTransactions,
48 size_t memoryCacheSize, 49 size_t memoryCacheSize,
49 unsigned int maxHttpRetries); 50 unsigned int maxHttpRetries);
50 51
51 static std::auto_ptr<PluginContext>& GetSingleton(); 52 static std::unique_ptr<PluginContext>& GetSingleton();
52 53
53 public: 54 public:
54 OrthancInstancesCache& GetCache() 55 OrthancInstancesCache& GetCache()
55 { 56 {
56 return cache_; 57 return cache_;