comparison 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
comparison
equal deleted inserted replaced
1506:f88265c3f8a0 1507:169adf9090a6
46 #include "../../Framework/StoneInitialization.h" 46 #include "../../Framework/StoneInitialization.h"
47 #include "../../Framework/Volumes/DicomVolumeImageMPRSlicer.h" 47 #include "../../Framework/Volumes/DicomVolumeImageMPRSlicer.h"
48 #include "../../Framework/Volumes/VolumeSceneLayerSource.h" 48 #include "../../Framework/Volumes/VolumeSceneLayerSource.h"
49 49
50 // Orthanc 50 // Orthanc
51 #include <Compatibility.h> // For std::unique_ptr<>
51 #include <Logging.h> 52 #include <Logging.h>
52 #include <OrthancException.h> 53 #include <OrthancException.h>
53 54
54 // System 55 // System
55 #include <boost/shared_ptr.hpp> 56 #include <boost/shared_ptr.hpp>
284 boost::shared_ptr<DicomStructureSetLoader> rtstructLoader) 285 boost::shared_ptr<DicomStructureSetLoader> rtstructLoader)
285 { 286 {
286 /** 287 /**
287 Configure the CT 288 Configure the CT
288 */ 289 */
289 std::auto_ptr<GrayscaleStyleConfigurator> style(new GrayscaleStyleConfigurator); 290 std::unique_ptr<GrayscaleStyleConfigurator> style(new GrayscaleStyleConfigurator);
290 style->SetLinearInterpolation(true); 291 style->SetLinearInterpolation(true);
291 292
292 this->SetCtVolumeSlicer(ctLoader, style.release()); 293 this->SetCtVolumeSlicer(ctLoader, style.release());
293 294
294 { 295 {