comparison Framework/Scene2D/FloatTextureSceneLayer.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 6ab03e429f06
children 257f2c9a02ac
comparison
equal deleted inserted replaced
1297:6ab03e429f06 1299:c38c89684d83
32 FloatTextureSceneLayer::FloatTextureSceneLayer(const Orthanc::ImageAccessor& texture) : 32 FloatTextureSceneLayer::FloatTextureSceneLayer(const Orthanc::ImageAccessor& texture) :
33 inverted_(false), 33 inverted_(false),
34 applyLog_(false) 34 applyLog_(false)
35 { 35 {
36 { 36 {
37 std::auto_ptr<Orthanc::ImageAccessor> t( 37 std::unique_ptr<Orthanc::ImageAccessor> t(
38 new Orthanc::Image(Orthanc::PixelFormat_Float32, 38 new Orthanc::Image(Orthanc::PixelFormat_Float32,
39 texture.GetWidth(), 39 texture.GetWidth(),
40 texture.GetHeight(), 40 texture.GetHeight(),
41 false)); 41 false));
42 42
125 } 125 }
126 126
127 127
128 ISceneLayer* FloatTextureSceneLayer::Clone() const 128 ISceneLayer* FloatTextureSceneLayer::Clone() const
129 { 129 {
130 std::auto_ptr<FloatTextureSceneLayer> cloned 130 std::unique_ptr<FloatTextureSceneLayer> cloned
131 (new FloatTextureSceneLayer(GetTexture())); 131 (new FloatTextureSceneLayer(GetTexture()));
132 132
133 cloned->CopyParameters(*this); 133 cloned->CopyParameters(*this);
134 cloned->windowing_ = windowing_; 134 cloned->windowing_ = windowing_;
135 cloned->customCenter_ = customCenter_; 135 cloned->customCenter_ = customCenter_;