summaryrefslogtreecommitdiffstats
path: root/src/core/nodes/qcomponent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/nodes/qcomponent.cpp')
-rw-r--r--src/core/nodes/qcomponent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/nodes/qcomponent.cpp b/src/core/nodes/qcomponent.cpp
index 81573442d..e94732bd6 100644
--- a/src/core/nodes/qcomponent.cpp
+++ b/src/core/nodes/qcomponent.cpp
@@ -58,7 +58,7 @@ void QComponentPrivate::addEntity(QEntity *entity)
{
m_entities.append(entity);
- if (m_scene != Q_NULLPTR && !m_scene->hasEntityForComponent(m_id, entity->id())) {
+ if (m_scene != nullptr && !m_scene->hasEntityForComponent(m_id, entity->id())) {
if (!m_shareable && !m_scene->entitiesForComponent(m_id).isEmpty())
qWarning() << "Trying to assign a non shareable component to more than one Entity";
m_scene->addEntityForComponent(m_id, entity->id());
@@ -71,7 +71,7 @@ void QComponentPrivate::removeEntity(QEntity *entity)
{
// TODO: Add QRemovedFromEntityChange to be delivered to components on the backend
- if (m_scene != Q_NULLPTR)
+ if (m_scene != nullptr)
m_scene->removeEntityForComponent(m_id, entity->id());
m_entities.removeAll(entity);