Mercurial > hg > orthanc-stone
comparison Framework/Scene2D/TextSceneLayer.cpp @ 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 #include "TextSceneLayer.h" | 22 #include "TextSceneLayer.h" |
23 | 23 |
24 #include <Core/Compatibility.h> | |
25 | |
24 namespace OrthancStone | 26 namespace OrthancStone |
25 { | 27 { |
26 TextSceneLayer::TextSceneLayer() : | 28 TextSceneLayer::TextSceneLayer() : |
27 x_(0), | 29 x_(0), |
28 y_(0), | 30 y_(0), |
34 } | 36 } |
35 | 37 |
36 | 38 |
37 ISceneLayer* TextSceneLayer::Clone() const | 39 ISceneLayer* TextSceneLayer::Clone() const |
38 { | 40 { |
39 std::auto_ptr<TextSceneLayer> cloned(new TextSceneLayer); | 41 std::unique_ptr<TextSceneLayer> cloned(new TextSceneLayer); |
40 cloned->SetColor(GetColor()); | 42 cloned->SetColor(GetColor()); |
41 cloned->x_ = x_; | 43 cloned->x_ = x_; |
42 cloned->y_ = y_; | 44 cloned->y_ = y_; |
43 cloned->utf8_ = utf8_; | 45 cloned->utf8_ = utf8_; |
44 cloned->fontIndex_ = fontIndex_; | 46 cloned->fontIndex_ = fontIndex_; |