summaryrefslogtreecommitdiffstats
path: root/src/core/nodes/qcomponent.cpp
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2015-07-02 16:53:11 +0200
committerTobias Koenig <tobias.koenig@kdab.com>2015-07-02 17:32:44 +0000
commit01e371dfaff7697456cf91d32d017ee994ba50f9 (patch)
tree3388068f44b0c889b03915b75ebb38e1483173bd /src/core/nodes/qcomponent.cpp
parentb6d9b89a1b47ead6825727bab8080252a8f20457 (diff)
QComponent: replace dynamic_cast with static_cast
Change-Id: Ic78656851660b099df2c92621ac0ad0be326d8f1 Task-number: QTBUG-46996 Reviewed-by: Tobias Koenig <tobias.koenig@kdab.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/core/nodes/qcomponent.cpp')
-rw-r--r--src/core/nodes/qcomponent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/nodes/qcomponent.cpp b/src/core/nodes/qcomponent.cpp
index 9f2cdbd66..f9887e745 100644
--- a/src/core/nodes/qcomponent.cpp
+++ b/src/core/nodes/qcomponent.cpp
@@ -128,7 +128,7 @@ QComponent::~QComponent()
Q_ASSERT_X(QNodePrivate::get(this)->m_wasCleanedUp, Q_FUNC_INFO, "QNode::cleanup should have been called by now. A Qt3D::QComponent subclass didn't call QNode::cleanup in its destructor");
Q_FOREACH (QEntity *entity, entities()) {
- QEntityPrivate *entityPimpl = dynamic_cast<QEntityPrivate *>(QEntityPrivate::get(entity));
+ QEntityPrivate *entityPimpl = static_cast<QEntityPrivate *>(QEntityPrivate::get(entity));
if (entityPimpl)
entityPimpl->m_components.removeAll(this);
}