Mercurial > hg > orthanc-stone
comparison Applications/Sdl/SdlOrthancSurface.h @ 1298:8a0a62189f46
replacing std::auto_ptr by std::unique_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Mar 2020 16:31:30 +0100 |
parents | 2d8ab34c8c91 |
children | 257f2c9a02ac |
comparison
equal
deleted
inserted
replaced
1296:86400fa16091 | 1298:8a0a62189f46 |
---|---|
23 | 23 |
24 #if ORTHANC_ENABLE_SDL == 1 | 24 #if ORTHANC_ENABLE_SDL == 1 |
25 | 25 |
26 #include "../../Framework/Viewport/SdlWindow.h" | 26 #include "../../Framework/Viewport/SdlWindow.h" |
27 | 27 |
28 #include <Core/Compatibility.h> | |
28 #include <Core/Images/ImageAccessor.h> | 29 #include <Core/Images/ImageAccessor.h> |
30 | |
29 #include <boost/thread/mutex.hpp> | 31 #include <boost/thread/mutex.hpp> |
30 | 32 |
31 namespace OrthancStone | 33 namespace OrthancStone |
32 { | 34 { |
33 class SdlOrthancSurface : public boost::noncopyable | 35 class SdlOrthancSurface : public boost::noncopyable |
34 { | 36 { |
35 private: | 37 private: |
36 std::auto_ptr<Orthanc::ImageAccessor> image_; | 38 std::unique_ptr<Orthanc::ImageAccessor> image_; |
37 SdlWindow& window_; | 39 SdlWindow& window_; |
38 SDL_Surface* sdlSurface_; | 40 SDL_Surface* sdlSurface_; |
39 | 41 |
40 public: | 42 public: |
41 SdlOrthancSurface(SdlWindow& window); | 43 SdlOrthancSurface(SdlWindow& window); |