comparison Plugins/Samples/GdcmDecoder/GdcmImageDecoder.cpp @ 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
comparison
equal deleted inserted replaced
3767:c6658187e4b1 3768:6110a4995ace
19 **/ 19 **/
20 20
21 21
22 #include "GdcmImageDecoder.h" 22 #include "GdcmImageDecoder.h"
23 23
24 #include "../../../Core/Compatibility.h"
24 #include "OrthancImageWrapper.h" 25 #include "OrthancImageWrapper.h"
25 26
26 #include <gdcmImageReader.h> 27 #include <gdcmImageReader.h>
27 #include <gdcmImageApplyLookupTable.h> 28 #include <gdcmImageApplyLookupTable.h>
28 #include <gdcmImageChangePlanarConfiguration.h> 29 #include <gdcmImageChangePlanarConfiguration.h>
38 { 39 {
39 const void* dicom_; 40 const void* dicom_;
40 size_t size_; 41 size_t size_;
41 42
42 gdcm::ImageReader reader_; 43 gdcm::ImageReader reader_;
43 std::auto_ptr<gdcm::ImageApplyLookupTable> lut_; 44 std::unique_ptr<gdcm::ImageApplyLookupTable> lut_;
44 std::auto_ptr<gdcm::ImageChangePhotometricInterpretation> photometric_; 45 std::unique_ptr<gdcm::ImageChangePhotometricInterpretation> photometric_;
45 std::auto_ptr<gdcm::ImageChangePlanarConfiguration> interleaved_; 46 std::unique_ptr<gdcm::ImageChangePlanarConfiguration> interleaved_;
46 std::string decoded_; 47 std::string decoded_;
47 48
48 PImpl(const void* dicom, 49 PImpl(const void* dicom,
49 size_t size) : 50 size_t size) :
50 dicom_(dicom), 51 dicom_(dicom),