Mercurial > hg > orthanc-stone
diff Framework/Oracle/GetOrthancWebViewerJpegCommand.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 |
line wrap: on
line diff
--- a/Framework/Oracle/GetOrthancWebViewerJpegCommand.cpp Sun Feb 23 15:32:24 2020 +0100 +++ b/Framework/Oracle/GetOrthancWebViewerJpegCommand.cpp Mon Mar 02 17:21:24 2020 +0100 @@ -114,7 +114,7 @@ } } - std::auto_ptr<Orthanc::ImageAccessor> reader; + std::unique_ptr<Orthanc::ImageAccessor> reader; { std::string jpeg; @@ -185,7 +185,7 @@ } // Decode a grayscale JPEG 8bpp image coming from the Web viewer - std::auto_ptr<Orthanc::ImageAccessor> image + std::unique_ptr<Orthanc::ImageAccessor> image (new Orthanc::Image(expectedFormat_, reader->GetWidth(), reader->GetHeight(), false)); Orthanc::ImageProcessing::Convert(*image, *reader);