Mercurial > hg > orthanc-stone
comparison Framework/Scene2D/FloatTextureSceneLayer.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 | 7def6ab2929f |
children | 257f2c9a02ac |
comparison
equal
deleted
inserted
replaced
1296:86400fa16091 | 1298:8a0a62189f46 |
---|---|
31 { | 31 { |
32 FloatTextureSceneLayer::FloatTextureSceneLayer(const Orthanc::ImageAccessor& texture) : | 32 FloatTextureSceneLayer::FloatTextureSceneLayer(const Orthanc::ImageAccessor& texture) : |
33 inverted_(false) | 33 inverted_(false) |
34 { | 34 { |
35 { | 35 { |
36 std::auto_ptr<Orthanc::ImageAccessor> t( | 36 std::unique_ptr<Orthanc::ImageAccessor> t( |
37 new Orthanc::Image(Orthanc::PixelFormat_Float32, | 37 new Orthanc::Image(Orthanc::PixelFormat_Float32, |
38 texture.GetWidth(), | 38 texture.GetWidth(), |
39 texture.GetHeight(), | 39 texture.GetHeight(), |
40 false)); | 40 false)); |
41 | 41 |
116 } | 116 } |
117 | 117 |
118 | 118 |
119 ISceneLayer* FloatTextureSceneLayer::Clone() const | 119 ISceneLayer* FloatTextureSceneLayer::Clone() const |
120 { | 120 { |
121 std::auto_ptr<FloatTextureSceneLayer> cloned | 121 std::unique_ptr<FloatTextureSceneLayer> cloned |
122 (new FloatTextureSceneLayer(GetTexture())); | 122 (new FloatTextureSceneLayer(GetTexture())); |
123 | 123 |
124 cloned->CopyParameters(*this); | 124 cloned->CopyParameters(*this); |
125 cloned->windowing_ = windowing_; | 125 cloned->windowing_ = windowing_; |
126 cloned->customCenter_ = customCenter_; | 126 cloned->customCenter_ = customCenter_; |