Mercurial > hg > orthanc-stone
comparison Framework/Deprecated/Layers/ColorFrameRenderer.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 | 30deba7bc8e2 |
comparison
equal
deleted
inserted
replaced
1296:86400fa16091 | 1298:8a0a62189f46 |
---|---|
27 | 27 |
28 namespace Deprecated | 28 namespace Deprecated |
29 { | 29 { |
30 OrthancStone::CairoSurface* ColorFrameRenderer::GenerateDisplay(const RenderStyle& style) | 30 OrthancStone::CairoSurface* ColorFrameRenderer::GenerateDisplay(const RenderStyle& style) |
31 { | 31 { |
32 std::auto_ptr<OrthancStone::CairoSurface> display | 32 std::unique_ptr<OrthancStone::CairoSurface> display |
33 (new OrthancStone::CairoSurface(frame_->GetWidth(), frame_->GetHeight(), false /* no alpha */)); | 33 (new OrthancStone::CairoSurface(frame_->GetWidth(), frame_->GetHeight(), false /* no alpha */)); |
34 | 34 |
35 Orthanc::ImageAccessor target; | 35 Orthanc::ImageAccessor target; |
36 display->GetWriteableAccessor(target); | 36 display->GetWriteableAccessor(target); |
37 | 37 |