comparison Framework/Scene2D/InfoPanelSceneLayer.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 be17fed8c7c5
comparison
equal deleted inserted replaced
1296:86400fa16091 1298:8a0a62189f46
22 #pragma once 22 #pragma once
23 23
24 #include "ISceneLayer.h" 24 #include "ISceneLayer.h"
25 #include "../StoneEnumerations.h" 25 #include "../StoneEnumerations.h"
26 26
27 #include <Core/Compatibility.h>
27 #include <Core/Images/ImageAccessor.h> 28 #include <Core/Images/ImageAccessor.h>
28 29
29 #include <memory> 30 #include <memory>
30 31
31 namespace OrthancStone 32 namespace OrthancStone
32 { 33 {
33 class InfoPanelSceneLayer : public ISceneLayer 34 class InfoPanelSceneLayer : public ISceneLayer
34 { 35 {
35 private: 36 private:
36 std::auto_ptr<Orthanc::ImageAccessor> texture_; 37 std::unique_ptr<Orthanc::ImageAccessor> texture_;
37 BitmapAnchor anchor_; 38 BitmapAnchor anchor_;
38 bool isLinearInterpolation_; 39 bool isLinearInterpolation_;
39 40
40 public: 41 public:
41 InfoPanelSceneLayer(const Orthanc::ImageAccessor& texture, 42 InfoPanelSceneLayer(const Orthanc::ImageAccessor& texture,