Mercurial > hg > orthanc-transfers
comparison Framework/OrthancInstancesCache.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 |
---|---|
21 | 21 |
22 #include "SourceDicomInstance.h" | 22 #include "SourceDicomInstance.h" |
23 #include "TransferBucket.h" | 23 #include "TransferBucket.h" |
24 | 24 |
25 #include <Cache/LeastRecentlyUsedIndex.h> | 25 #include <Cache/LeastRecentlyUsedIndex.h> |
26 #include <Compatibility.h> // For std::unique_ptr | |
26 | 27 |
27 #include <boost/thread/mutex.hpp> | 28 #include <boost/thread/mutex.hpp> |
28 | 29 |
29 namespace OrthancPlugins | 30 namespace OrthancPlugins |
30 { | 31 { |
73 // The mutex must be locked! | 74 // The mutex must be locked! |
74 void RemoveOldest(); | 75 void RemoveOldest(); |
75 | 76 |
76 // The mutex must be locked! | 77 // The mutex must be locked! |
77 void Store(const std::string& instanceId, | 78 void Store(const std::string& instanceId, |
78 std::auto_ptr<SourceDicomInstance>& instance); | 79 std::unique_ptr<SourceDicomInstance>& instance); |
79 | 80 |
80 | 81 |
81 public: | 82 public: |
82 OrthancInstancesCache(); | 83 OrthancInstancesCache(); |
83 | 84 |