comparison Framework/Scene2D/TextSceneLayer.cpp @ 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 #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_;