QmlPuppet: Replace some foreach

Change-Id: I59b4049282564762f75aa5e9a7a0b7eba055db48
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2019-07-25 16:58:50 +02:00
parent a6c85993ba
commit a34bf6a23b
5 changed files with 6 additions and 6 deletions
@@ -72,7 +72,8 @@ void ComponentNodeInstance::setNodeSource(const QString &source)
setId(id());
if (component()->isError()) {
foreach (const QQmlError &error, component()->errors())
const QList<QQmlError> errors = component()->errors();
for (const QQmlError &error : errors)
qWarning() << error;
}