aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@nokia.com>2011-09-02 11:04:31 +0200
committerGunnar Sletta <gunnar.sletta@nokia.com>2011-09-02 12:13:10 +0200
commit99ac54dea65d9dfc908ec3615e70d325a6ea8aff (patch)
treed001fda364e578ba36a4b8a21970b75fa90028a6 /src/declarative/items
parent6343aea363d2bd885f55339a9aa2f82fb8ec7bf2 (diff)
properly initialize the dptr of QSGCanvas in the default constructor
Change-Id: Ibefa8fe0ca73674e817b87782821a26a316e8042 Reviewed-on: http://codereview.qt.nokia.com/4124 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/declarative/items')
-rw-r--r--src/declarative/items/qsgcanvas.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/items/qsgcanvas.cpp b/src/declarative/items/qsgcanvas.cpp
index 96af2a5f3a..6339683a68 100644
--- a/src/declarative/items/qsgcanvas.cpp
+++ b/src/declarative/items/qsgcanvas.cpp
@@ -775,7 +775,7 @@ void QSGCanvasPrivate::cleanup(QSGNode *n)
QSGCanvas::QSGCanvas(QWindow *parent)
- : QWindow(parent)
+ : QWindow(*(new QSGCanvasPrivate), parent)
{
Q_D(QSGCanvas);
d->init(this);