summaryrefslogtreecommitdiffstats
path: root/src/core/nodes/qentity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/nodes/qentity.cpp')
-rw-r--r--src/core/nodes/qentity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/nodes/qentity.cpp b/src/core/nodes/qentity.cpp
index 6e8fbfcb8..190618608 100644
--- a/src/core/nodes/qentity.cpp
+++ b/src/core/nodes/qentity.cpp
@@ -181,7 +181,7 @@ QEntity *QEntity::parentEntity() const
QNode *parentNode = QNode::parentNode();
QEntity *parentEntity = qobject_cast<QEntity *>(parentNode);
- while (parentEntity == Q_NULLPTR && parentNode != Q_NULLPTR) {
+ while (parentEntity == nullptr && parentNode != nullptr) {
parentNode = parentNode->parentNode();
parentEntity = qobject_cast<QEntity*>(parentNode);
}