diff Plugins/Samples/GdcmDecoder/GdcmDecoderCache.h @ 3768:6110a4995ace

replacing std::auto_ptr by std::unique_ptr in GDCM sample plugin
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 17 Mar 2020 15:02:23 +0100
parents 94f4a18a79cc
children 7e33516965f8
line wrap: on
line diff
--- a/Plugins/Samples/GdcmDecoder/GdcmDecoderCache.h	Tue Mar 17 14:46:06 2020 +0100
+++ b/Plugins/Samples/GdcmDecoder/GdcmDecoderCache.h	Tue Mar 17 15:02:23 2020 +0100
@@ -21,6 +21,7 @@
 
 #pragma once
 
+#include "../../../Core/Compatibility.h"
 #include "GdcmImageDecoder.h"
 #include "OrthancImageWrapper.h"
 
@@ -33,7 +34,7 @@
   {
   private:
     boost::mutex   mutex_;
-    std::auto_ptr<OrthancPlugins::GdcmImageDecoder>  decoder_;
+    std::unique_ptr<OrthancPlugins::GdcmImageDecoder>  decoder_;
     size_t       size_;
     std::string  md5_;