summaryrefslogtreecommitdiffstats
path: root/src/core/nodes/qnode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/nodes/qnode.cpp')
-rw-r--r--src/core/nodes/qnode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/nodes/qnode.cpp b/src/core/nodes/qnode.cpp
index da9d96679..53b1e8f77 100644
--- a/src/core/nodes/qnode.cpp
+++ b/src/core/nodes/qnode.cpp
@@ -67,7 +67,7 @@ QNodePrivate::QNodePrivate(QNode *qq)
, m_propertyChangesSetup(false)
, m_signals(this)
{
- q_ptr = qq;
+ Q_UNUSED(qq) // ###
}
// Called by QEvent::childAdded (main thread)
@@ -325,7 +325,7 @@ void QNodePrivate::nodePtrDeleter(QNode *q)
Creates a new Qt3D::QNode instance with parent \a parent.
*/
QNode::QNode(QNode *parent)
- : QObject(*new QNodePrivate(this), parent)
+ : QObject(*new QNodePrivate, parent)
{
// We rely on QEvent::childAdded to be triggered on the parent
// So we don't actually need to invoke a method or anything