summaryrefslogtreecommitdiffstats
path: root/src/core/qpostman.cpp
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2015-05-18 05:56:18 +0400
committerKonstantin Ritt <ritt.ks@gmail.com>2015-05-20 05:55:07 +0000
commit5e28b995f5e43c6a908906966190f4ad594edede (patch)
treea68746c499d0f3218b573d0ca0b79027935dd0e0 /src/core/qpostman.cpp
parentcc5ca324a7ee2163ba9e342318e711d47871c65c (diff)
Do not initialize q_ptr in classes derived from QObjectPrivate
QObject does that behind the scenes, in a proper way. Change-Id: I92561060757d36358d1e507f4335ca605f681678 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/core/qpostman.cpp')
-rw-r--r--src/core/qpostman.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/qpostman.cpp b/src/core/qpostman.cpp
index 88054586e..d9a8738f7 100644
--- a/src/core/qpostman.cpp
+++ b/src/core/qpostman.cpp
@@ -49,11 +49,10 @@ namespace Qt3D {
class QPostmanPrivate : public QObjectPrivate
{
public:
- QPostmanPrivate(QPostman *qq)
+ QPostmanPrivate()
: QObjectPrivate()
, m_scene(Q_NULLPTR)
{
- q_ptr = qq;
}
Q_DECLARE_PUBLIC(QPostman)
@@ -61,7 +60,7 @@ public:
};
QPostman::QPostman(QObject *parent)
- : QObject(*new QPostmanPrivate(this), parent)
+ : QObject(*new QPostmanPrivate, parent)
{
qRegisterMetaType<QSceneChangePtr >("QSceneChangePtr");
}