summaryrefslogtreecommitdiff
path: root/src/gui/painting/qpainterpath_p.h
diff options
context:
space:
mode:
authorCharles Yin <charles.yin@nokia.com>2011-11-08 14:42:08 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-08 07:43:00 +0100
commit78542c62757566c75908ae112312d677f032af6a (patch)
treeb47b2a03a58b9445acf2709391680f7357038466 /src/gui/painting/qpainterpath_p.h
parent63eae1bd15ea8aa1e4fc460194e34ecb5fc55b3a (diff)
downloadqtbase-78542c62757566c75908ae112312d677f032af6a.tar.gz
QPainterPath: Fix copy constructor again.
The previous fix a05270f435483937e76d18fa6e512dc0394507d1 is not correct, QPainterPathPrivate(other) should be QPainterPathPrivate(), as there is only a default ctor for QPainterPathPrivate and ref is initialized there, use copy ctor just copies the ref value which makes all detach() calls broken. Add an unit test for this as well. Change-Id: I658f0a977664d5ec523af3f8a48c1a866eda6ab0 Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/gui/painting/qpainterpath_p.h')
-rw-r--r--src/gui/painting/qpainterpath_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpainterpath_p.h b/src/gui/painting/qpainterpath_p.h
index 731a1bcc24..738c2d382d 100644
--- a/src/gui/painting/qpainterpath_p.h
+++ b/src/gui/painting/qpainterpath_p.h
@@ -153,7 +153,7 @@ public:
}
QPainterPathData(const QPainterPathData &other) :
- QPainterPathPrivate(other), cStart(other.cStart), fillRule(other.fillRule),
+ QPainterPathPrivate(), cStart(other.cStart), fillRule(other.fillRule),
bounds(other.bounds),
controlBounds(other.controlBounds),
dirtyBounds(other.dirtyBounds),