comparison Core/DicomFormat/DicomImageInformation.cpp @ 3712:2a170a8f1faf

replacing std::auto_ptr by std::unique_ptr
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Mar 2020 15:32:45 +0100
parents 94f4a18a79cc
children
comparison
equal deleted inserted replaced
3709:1f4910999fe7 3712:2a170a8f1faf
37 #define NOMINMAX 37 #define NOMINMAX
38 #endif 38 #endif
39 39
40 #include "DicomImageInformation.h" 40 #include "DicomImageInformation.h"
41 41
42 #include "../Compatibility.h"
42 #include "../OrthancException.h" 43 #include "../OrthancException.h"
43 #include "../Toolbox.h" 44 #include "../Toolbox.h"
44 #include <boost/lexical_cast.hpp> 45 #include <boost/lexical_cast.hpp>
45 #include <limits> 46 #include <limits>
46 #include <cassert> 47 #include <cassert>
221 isSigned_ = (pixelRepresentation != 0 ? true : false); 222 isSigned_ = (pixelRepresentation != 0 ? true : false);
222 } 223 }
223 224
224 DicomImageInformation* DicomImageInformation::Clone() const 225 DicomImageInformation* DicomImageInformation::Clone() const
225 { 226 {
226 std::auto_ptr<DicomImageInformation> target(new DicomImageInformation); 227 std::unique_ptr<DicomImageInformation> target(new DicomImageInformation);
227 target->width_ = width_; 228 target->width_ = width_;
228 target->height_ = height_; 229 target->height_ = height_;
229 target->samplesPerPixel_ = samplesPerPixel_; 230 target->samplesPerPixel_ = samplesPerPixel_;
230 target->numberOfFrames_ = numberOfFrames_; 231 target->numberOfFrames_ = numberOfFrames_;
231 target->isPlanar_ = isPlanar_; 232 target->isPlanar_ = isPlanar_;