diff options
-rw-r--r-- | examples/gui/rasterwindow/rasterwindow.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/gui/rasterwindow/rasterwindow.h b/examples/gui/rasterwindow/rasterwindow.h index 58c3ab89b2..279952cf61 100644 --- a/examples/gui/rasterwindow/rasterwindow.h +++ b/examples/gui/rasterwindow/rasterwindow.h @@ -53,6 +53,7 @@ //! [1] #include <QtGui> +#include <QScopedPointer> class RasterWindow : public QWindow { @@ -73,7 +74,7 @@ protected: void exposeEvent(QExposeEvent *event) override; private: - QBackingStore *m_backingStore; + QScopedPointer<QBackingStore> m_backingStore; }; //! [1] #endif // RASTERWINDOW_H |