summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qpicture.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/image/qpicture.h')
-rw-r--r--src/gui/image/qpicture.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/image/qpicture.h b/src/gui/image/qpicture.h
index 67e8db2..c323f0e 100644
--- a/src/gui/image/qpicture.h
+++ b/src/gui/image/qpicture.h
@@ -106,7 +106,7 @@ private:
bool exec(QPainter *p, QDataStream &ds, int i);
void detach_helper();
- QPicturePrivate *d_ptr;
+ QScopedSharedPointer<QPicturePrivate> d_ptr;
friend class QPicturePaintEngine;
friend class Q3Picture;
friend class QAlphaPaintEngine;
@@ -114,7 +114,7 @@ private:
public:
typedef QPicturePrivate* DataPtr;
- inline DataPtr &data_ptr() { return d_ptr; }
+ inline DataPtr &data_ptr() { return d_ptr.data_ptr(); }
};
Q_DECLARE_SHARED(QPicture)