Mercurial > hg > orthanc-stone
comparison Framework/Fonts/Glyph.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 | 30deba7bc8e2 |
comparison
equal
deleted
inserted
replaced
1296:86400fa16091 | 1298:8a0a62189f46 |
---|---|
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 | 26 |
26 #include <memory> | 27 #include <memory> |
27 | 28 |
28 | 29 |
36 int offsetLeft_; | 37 int offsetLeft_; |
37 int offsetTop_; | 38 int offsetTop_; |
38 int advanceX_; | 39 int advanceX_; |
39 unsigned int lineHeight_; | 40 unsigned int lineHeight_; |
40 | 41 |
41 std::auto_ptr<Orthanc::IDynamicObject> payload_; | 42 std::unique_ptr<Orthanc::IDynamicObject> payload_; |
42 | 43 |
43 public: | 44 public: |
44 // WARNING: This does not copy the payload | 45 // WARNING: This does not copy the payload |
45 Glyph(const Glyph& other); | 46 Glyph(const Glyph& other); |
46 | 47 |