Mercurial > hg > orthanc-stone
diff Samples/WebAssembly/SingleFrameViewer/SingleFrameViewer.cpp @ 1507:169adf9090a6
replacing deprecated std::auto_ptr by std::unique_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 06 Jul 2020 16:47:40 +0200 |
parents | 15173a383a00 |
children |
line wrap: on
line diff
--- a/Samples/WebAssembly/SingleFrameViewer/SingleFrameViewer.cpp Tue Jun 30 22:00:38 2020 +0200 +++ b/Samples/WebAssembly/SingleFrameViewer/SingleFrameViewer.cpp Mon Jul 06 16:47:40 2020 +0200 @@ -25,6 +25,7 @@ #include "../../../Framework/StoneException.h" #include "../../../Framework/StoneInitialization.h" +#include <Compatibility.h> // For std::unique_ptr<> #include <Toolbox.h> #include <emscripten.h> @@ -66,7 +67,7 @@ { } -static std::auto_ptr<OrthancStone::WebAssemblyLoadersContext> context_; +static std::unique_ptr<OrthancStone::WebAssemblyLoadersContext> context_; static boost::shared_ptr<OrthancStone::Application> application_; extern "C"