Mercurial > hg > orthanc-wsi
diff Framework/Jpeg2000Reader.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 | f299c191cd76 |
children | 628201cb48c2 |
line wrap: on
line diff
--- a/Framework/Jpeg2000Reader.cpp Mon Jul 06 16:17:09 2020 +0200 +++ b/Framework/Jpeg2000Reader.cpp Mon Jul 06 16:29:41 2020 +0200 @@ -22,9 +22,11 @@ #include "PrecompiledHeadersWSI.h" #include "Jpeg2000Reader.h" +#include "ImageToolbox.h" + +#include <Compatibility.h> // For std::unique_ptr #include <OrthancException.h> #include <SystemToolbox.h> -#include "ImageToolbox.h" #include <cassert> #include <string.h> @@ -400,7 +402,7 @@ throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); } - std::auto_ptr<Orthanc::ImageAccessor> image(ImageToolbox::Allocate(format, width, height)); + std::unique_ptr<Orthanc::ImageAccessor> image(ImageToolbox::Allocate(format, width, height)); switch (format) {