diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2015-05-18 05:56:18 +0400 |
---|---|---|
committer | Konstantin Ritt <ritt.ks@gmail.com> | 2015-05-20 05:55:07 +0000 |
commit | 5e28b995f5e43c6a908906966190f4ad594edede (patch) | |
tree | a68746c499d0f3218b573d0ca0b79027935dd0e0 /src/core/qpostman.cpp | |
parent | cc5ca324a7ee2163ba9e342318e711d47871c65c (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.cpp | 5 |
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"); } |