summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpagelayout.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-04-05 00:51:43 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-08 22:06:50 +0200
commit0de0f494bd75786ff361da2ac05c85d8aeac3b37 (patch)
treea0c0ea36e2819a2c521087935f1dda18e711d9e1 /src/gui/painting/qpagelayout.h
parent7b3d9bbdf22a2bed499fa1056ae1c66545c4f0cd (diff)
QPageLayout: use QExplicitlySharedDataPointer
Many setters check for an actual change before making changes to data members, but because of QSharedDataPointer, the detach had already happened by the time the comparison returned false. Change-Id: I320806e74de4a64fa3a340831621c1f5120ebb0f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: John Layt <jlayt@kde.org>
Diffstat (limited to 'src/gui/painting/qpagelayout.h')
-rw-r--r--src/gui/painting/qpagelayout.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpagelayout.h b/src/gui/painting/qpagelayout.h
index 6e2752c3a1..c636ca7476 100644
--- a/src/gui/painting/qpagelayout.h
+++ b/src/gui/painting/qpagelayout.h
@@ -137,7 +137,7 @@ public:
private:
friend class QPageLayoutPrivate;
- QSharedDataPointer<QPageLayoutPrivate> d;
+ QExplicitlySharedDataPointer<QPageLayoutPrivate> d;
};
Q_DECLARE_SHARED(QPageLayout)