Mercurial > hg > orthanc
comparison Core/Images/Image.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 |
---|---|
31 **/ | 31 **/ |
32 | 32 |
33 | 33 |
34 #include "Image.h" | 34 #include "Image.h" |
35 | 35 |
36 #include "../Compatibility.h" | |
36 #include "ImageProcessing.h" | 37 #include "ImageProcessing.h" |
37 | 38 |
38 #include <memory> | 39 #include <memory> |
39 | 40 |
40 namespace Orthanc | 41 namespace Orthanc |
52 } | 53 } |
53 | 54 |
54 | 55 |
55 Image* Image::Clone(const ImageAccessor& source) | 56 Image* Image::Clone(const ImageAccessor& source) |
56 { | 57 { |
57 std::auto_ptr<Image> target(new Image(source.GetFormat(), source.GetWidth(), source.GetHeight(), false)); | 58 std::unique_ptr<Image> target(new Image(source.GetFormat(), source.GetWidth(), source.GetHeight(), false)); |
58 ImageProcessing::Copy(*target, source); | 59 ImageProcessing::Copy(*target, source); |
59 return target.release(); | 60 return target.release(); |
60 } | 61 } |
61 } | 62 } |