comparison Applications/Qt/QCairoWidget.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
comparison
equal deleted inserted replaced
1296:86400fa16091 1298:8a0a62189f46
47 { 47 {
48 that_.OnViewportChanged(); 48 that_.OnViewportChanged();
49 } 49 }
50 }; 50 };
51 51
52 std::auto_ptr<QImage> image_; 52 std::unique_ptr<QImage> image_;
53 OrthancStone::CairoSurface surface_; 53 OrthancStone::CairoSurface surface_;
54 OrthancStone::NativeStoneApplicationContext* context_; 54 OrthancStone::NativeStoneApplicationContext* context_;
55 std::auto_ptr<StoneObserver> observer_; 55 std::unique_ptr<StoneObserver> observer_;
56 56
57 protected: 57 protected:
58 virtual void paintEvent(QPaintEvent *event); 58 virtual void paintEvent(QPaintEvent *event);
59 59
60 virtual void resizeEvent(QResizeEvent *event); 60 virtual void resizeEvent(QResizeEvent *event);