comparison Framework/Volumes/DicomVolumeImageMPRSlicer.cpp @ 1298:8a0a62189f46

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 16:31:30 +0100
parents f037422f3a66
children 257f2c9a02ac
comparison
equal deleted inserted replaced
1296:86400fa16091 1298:8a0a62189f46
75 { 75 {
76 throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer, 76 throw Orthanc::OrthancException(Orthanc::ErrorCode_NullPointer,
77 "A style configurator is mandatory for textures"); 77 "A style configurator is mandatory for textures");
78 } 78 }
79 79
80 std::auto_ptr<TextureBaseSceneLayer> texture; 80 std::unique_ptr<TextureBaseSceneLayer> texture;
81 81
82 { 82 {
83 const DicomInstanceParameters& parameters = volume_.GetDicomParameters(); 83 const DicomInstanceParameters& parameters = volume_.GetDicomParameters();
84 ImageBuffer3D::SliceReader reader(volume_.GetPixelData(), projection_, sliceIndex_); 84 ImageBuffer3D::SliceReader reader(volume_.GetPixelData(), projection_, sliceIndex_);
85 85