diff Samples/Common/RtViewerView.cpp @ 1507:169adf9090a6

replacing deprecated std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 06 Jul 2020 16:47:40 +0200
parents 1e381f2596d3
children
line wrap: on
line diff
--- a/Samples/Common/RtViewerView.cpp	Tue Jun 30 22:00:38 2020 +0200
+++ b/Samples/Common/RtViewerView.cpp	Mon Jul 06 16:47:40 2020 +0200
@@ -48,6 +48,7 @@
 #include "../../Framework/Volumes/VolumeSceneLayerSource.h"
 
 // Orthanc
+#include <Compatibility.h>  // For std::unique_ptr<>
 #include <Logging.h>
 #include <OrthancException.h>
 
@@ -286,7 +287,7 @@
     /**
     Configure the CT
     */
-    std::auto_ptr<GrayscaleStyleConfigurator> style(new GrayscaleStyleConfigurator);
+    std::unique_ptr<GrayscaleStyleConfigurator> style(new GrayscaleStyleConfigurator);
     style->SetLinearInterpolation(true);
 
     this->SetCtVolumeSlicer(ctLoader, style.release());