forked from qt-creator/qt-creator
QmlPuppet: Replace some foreach
Change-Id: I59b4049282564762f75aa5e9a7a0b7eba055db48 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user