comparison Framework/Deprecated/Widgets/LayoutWidget.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 257f2c9a02ac
comparison
equal deleted inserted replaced
1296:86400fa16091 1298:8a0a62189f46
29 namespace Deprecated 29 namespace Deprecated
30 { 30 {
31 class LayoutWidget::LayoutMouseTracker : public IMouseTracker 31 class LayoutWidget::LayoutMouseTracker : public IMouseTracker
32 { 32 {
33 private: 33 private:
34 std::auto_ptr<IMouseTracker> tracker_; 34 std::unique_ptr<IMouseTracker> tracker_;
35 int left_; 35 int left_;
36 int top_; 36 int top_;
37 unsigned int width_; 37 unsigned int width_;
38 unsigned int height_; 38 unsigned int height_;
39 39
83 83
84 84
85 class LayoutWidget::ChildWidget : public boost::noncopyable 85 class LayoutWidget::ChildWidget : public boost::noncopyable
86 { 86 {
87 private: 87 private:
88 std::auto_ptr<IWidget> widget_; 88 std::unique_ptr<IWidget> widget_;
89 int left_; 89 int left_;
90 int top_; 90 int top_;
91 unsigned int width_; 91 unsigned int width_;
92 unsigned int height_; 92 unsigned int height_;
93 93