comparison Framework/Scene2D/LookupTableTextureSceneLayer.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 2d8ab34c8c91
children 257f2c9a02ac
comparison
equal deleted inserted replaced
1296:86400fa16091 1298:8a0a62189f46
28 namespace OrthancStone 28 namespace OrthancStone
29 { 29 {
30 LookupTableTextureSceneLayer::LookupTableTextureSceneLayer(const Orthanc::ImageAccessor& texture) 30 LookupTableTextureSceneLayer::LookupTableTextureSceneLayer(const Orthanc::ImageAccessor& texture)
31 { 31 {
32 { 32 {
33 std::auto_ptr<Orthanc::ImageAccessor> t( 33 std::unique_ptr<Orthanc::ImageAccessor> t(
34 new Orthanc::Image(Orthanc::PixelFormat_Float32, 34 new Orthanc::Image(Orthanc::PixelFormat_Float32,
35 texture.GetWidth(), 35 texture.GetWidth(),
36 texture.GetHeight(), 36 texture.GetHeight(),
37 false)); 37 false));
38 38
144 } 144 }
145 145
146 146
147 ISceneLayer* LookupTableTextureSceneLayer::Clone() const 147 ISceneLayer* LookupTableTextureSceneLayer::Clone() const
148 { 148 {
149 std::auto_ptr<LookupTableTextureSceneLayer> cloned 149 std::unique_ptr<LookupTableTextureSceneLayer> cloned
150 (new LookupTableTextureSceneLayer(GetTexture())); 150 (new LookupTableTextureSceneLayer(GetTexture()));
151 151
152 152
153 // TODO: why is windowing_ not copied?????? 153 // TODO: why is windowing_ not copied??????
154 cloned->CopyParameters(*this); 154 cloned->CopyParameters(*this);