Mercurial > hg > orthanc-wsi
diff ViewerPlugin/Plugin.cpp @ 199:a1c265cb2174
replacing deprecated std::auto_ptr by std::unique_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 06 Jul 2020 16:29:41 +0200 |
parents | b0bd22077cd8 |
children | e12a4588d4bd |
line wrap: on
line diff
--- a/ViewerPlugin/Plugin.cpp Mon Jul 06 16:17:09 2020 +0200 +++ b/ViewerPlugin/Plugin.cpp Mon Jul 06 16:29:41 2020 +0200 @@ -25,6 +25,7 @@ #include "DicomPyramidCache.h" #include "OrthancPluginConnection.h" +#include <Compatibility.h> // For std::unique_ptr #include <Logging.h> #include <Images/ImageProcessing.h> #include <Images/PngWriter.h> @@ -38,9 +39,9 @@ #include <cassert> -std::auto_ptr<OrthancWSI::OrthancPluginConnection> orthanc_; -std::auto_ptr<OrthancWSI::DicomPyramidCache> cache_; -std::auto_ptr<Orthanc::Semaphore> transcoderSemaphore_; +std::unique_ptr<OrthancWSI::OrthancPluginConnection> orthanc_; +std::unique_ptr<OrthancWSI::DicomPyramidCache> cache_; +std::unique_ptr<Orthanc::Semaphore> transcoderSemaphore_; static void AnswerSparseTile(OrthancPluginRestOutput* output, @@ -183,7 +184,7 @@ // The tile does not come from a DICOM-JPEG instance, we need to // decompress the raw tile - std::auto_ptr<Orthanc::ImageAccessor> decoded; + std::unique_ptr<Orthanc::ImageAccessor> decoded; Orthanc::Semaphore::Locker locker(*transcoderSemaphore_);