Mercurial > hg > orthanc-stone
comparison Framework/Scene2D/LookupTableTextureSceneLayer.cpp @ 1299:c38c89684d83 broker
replacing std::auto_ptr by std::unique_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Mar 2020 17:21:24 +0100 |
parents | 7ec8fea061b9 |
children | 257f2c9a02ac |
comparison
equal
deleted
inserted
replaced
1297:6ab03e429f06 | 1299:c38c89684d83 |
---|---|
29 { | 29 { |
30 LookupTableTextureSceneLayer::LookupTableTextureSceneLayer(const Orthanc::ImageAccessor& texture) : | 30 LookupTableTextureSceneLayer::LookupTableTextureSceneLayer(const Orthanc::ImageAccessor& texture) : |
31 applyLog_(false) | 31 applyLog_(false) |
32 { | 32 { |
33 { | 33 { |
34 std::auto_ptr<Orthanc::ImageAccessor> t( | 34 std::unique_ptr<Orthanc::ImageAccessor> t( |
35 new Orthanc::Image(Orthanc::PixelFormat_Float32, | 35 new Orthanc::Image(Orthanc::PixelFormat_Float32, |
36 texture.GetWidth(), | 36 texture.GetWidth(), |
37 texture.GetHeight(), | 37 texture.GetHeight(), |
38 false)); | 38 false)); |
39 | 39 |
151 } | 151 } |
152 | 152 |
153 | 153 |
154 ISceneLayer* LookupTableTextureSceneLayer::Clone() const | 154 ISceneLayer* LookupTableTextureSceneLayer::Clone() const |
155 { | 155 { |
156 std::auto_ptr<LookupTableTextureSceneLayer> cloned | 156 std::unique_ptr<LookupTableTextureSceneLayer> cloned |
157 (new LookupTableTextureSceneLayer(GetTexture())); | 157 (new LookupTableTextureSceneLayer(GetTexture())); |
158 | 158 |
159 | 159 |
160 // TODO: why is windowing_ not copied?????? | 160 // TODO: why is windowing_ not copied?????? |
161 cloned->CopyParameters(*this); | 161 cloned->CopyParameters(*this); |