diff 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
line wrap: on
line diff
--- a/Framework/OrthancInstancesCache.h	Mon Jul 06 16:23:48 2020 +0200
+++ b/Framework/OrthancInstancesCache.h	Mon Jul 06 16:25:56 2020 +0200
@@ -23,6 +23,7 @@
 #include "TransferBucket.h"
 
 #include <Cache/LeastRecentlyUsedIndex.h>
+#include <Compatibility.h>  // For std::unique_ptr
 
 #include <boost/thread/mutex.hpp>
 
@@ -75,7 +76,7 @@
 
     // The mutex must be locked!
     void Store(const std::string& instanceId,
-               std::auto_ptr<SourceDicomInstance>& instance);
+               std::unique_ptr<SourceDicomInstance>& instance);
     
 
   public: