comparison Applications/Qt/QCairoWidget.h @ 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
comparison
equal deleted inserted replaced
1297:6ab03e429f06 1299:c38c89684d83
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);