summaryrefslogtreecommitdiffstats
path: root/tests/manual/assimp/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/assimp/main.cpp')
-rw-r--r--tests/manual/assimp/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/manual/assimp/main.cpp b/tests/manual/assimp/main.cpp
index 5df575e32..307ff87c2 100644
--- a/tests/manual/assimp/main.cpp
+++ b/tests/manual/assimp/main.cpp
@@ -85,8 +85,8 @@ QObject *SceneHelper::findEntity(Qt3DRender::QSceneLoader *loader, const QString
QObject *SceneHelper::findComponent(Qt3DCore::QEntity *entity, const QString &componentMetatype)
{
Q_ASSERT(entity);
- Qt3DCore::QComponentVector components = entity->components();
- Q_FOREACH (Qt3DCore::QComponent *component, components) {
+ const Qt3DCore::QComponentVector components = entity->components();
+ for (Qt3DCore::QComponent *component : components) {
qDebug() << component->metaObject()->className();
if (component->metaObject()->className() == componentMetatype) {
return component;