comparison 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
comparison
equal deleted inserted replaced
1506:f88265c3f8a0 1507:169adf9090a6
23 23
24 #include "../../../Framework/Loaders/WebAssemblyLoadersContext.h" 24 #include "../../../Framework/Loaders/WebAssemblyLoadersContext.h"
25 #include "../../../Framework/StoneException.h" 25 #include "../../../Framework/StoneException.h"
26 #include "../../../Framework/StoneInitialization.h" 26 #include "../../../Framework/StoneInitialization.h"
27 27
28 #include <Compatibility.h> // For std::unique_ptr<>
28 #include <Toolbox.h> 29 #include <Toolbox.h>
29 30
30 #include <emscripten.h> 31 #include <emscripten.h>
31 #include <emscripten/html5.h> 32 #include <emscripten/html5.h>
32 33
64 65
65 namespace OrthancStone 66 namespace OrthancStone
66 { 67 {
67 } 68 }
68 69
69 static std::auto_ptr<OrthancStone::WebAssemblyLoadersContext> context_; 70 static std::unique_ptr<OrthancStone::WebAssemblyLoadersContext> context_;
70 static boost::shared_ptr<OrthancStone::Application> application_; 71 static boost::shared_ptr<OrthancStone::Application> application_;
71 72
72 extern "C" 73 extern "C"
73 { 74 {
74 int main(int argc, char const *argv[]) 75 int main(int argc, char const *argv[])