Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/DynamicBitmap.h @ 1299:c38c89684d83 broker
replacing std::auto_ptr by std::unique_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Mar 2020 17:21:24 +0100 |
parents | 2d8ab34c8c91 |
children | 30deba7bc8e2 |
comparison
equal
deleted
inserted
replaced
1297:6ab03e429f06 | 1299:c38c89684d83 |
---|---|
19 **/ | 19 **/ |
20 | 20 |
21 | 21 |
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include <Core/Compatibility.h> | |
24 #include <Core/IDynamicObject.h> | 25 #include <Core/IDynamicObject.h> |
25 #include <Core/Images/ImageAccessor.h> | 26 #include <Core/Images/ImageAccessor.h> |
26 | 27 |
27 #include <memory> | 28 #include <memory> |
28 | 29 |
29 namespace OrthancStone | 30 namespace OrthancStone |
30 { | 31 { |
31 class DynamicBitmap : public Orthanc::IDynamicObject | 32 class DynamicBitmap : public Orthanc::IDynamicObject |
32 { | 33 { |
33 private: | 34 private: |
34 std::auto_ptr<Orthanc::ImageAccessor> bitmap_; | 35 std::unique_ptr<Orthanc::ImageAccessor> bitmap_; |
35 | 36 |
36 public: | 37 public: |
37 DynamicBitmap(const Orthanc::ImageAccessor& bitmap); | 38 DynamicBitmap(const Orthanc::ImageAccessor& bitmap); |
38 | 39 |
39 const Orthanc::ImageAccessor& GetBitmap() const | 40 const Orthanc::ImageAccessor& GetBitmap() const |