Mercurial > hg > orthanc-stone
comparison Framework/Deprecated/Layers/GrayscaleFrameRenderer.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 | 2d8ab34c8c91 |
children | 30deba7bc8e2 |
comparison
equal
deleted
inserted
replaced
1297:6ab03e429f06 | 1299:c38c89684d83 |
---|---|
28 { | 28 { |
29 OrthancStone::CairoSurface* GrayscaleFrameRenderer::GenerateDisplay(const RenderStyle& style) | 29 OrthancStone::CairoSurface* GrayscaleFrameRenderer::GenerateDisplay(const RenderStyle& style) |
30 { | 30 { |
31 assert(frame_->GetFormat() == Orthanc::PixelFormat_Float32); | 31 assert(frame_->GetFormat() == Orthanc::PixelFormat_Float32); |
32 | 32 |
33 std::auto_ptr<OrthancStone::CairoSurface> result; | 33 std::unique_ptr<OrthancStone::CairoSurface> result; |
34 | 34 |
35 float windowCenter, windowWidth; | 35 float windowCenter, windowWidth; |
36 style.ComputeWindowing(windowCenter, windowWidth, | 36 style.ComputeWindowing(windowCenter, windowWidth, |
37 defaultWindowCenter_, defaultWindowWidth_); | 37 defaultWindowCenter_, defaultWindowWidth_); |
38 | 38 |