diff options
author | Robin Burchell <robin.burchell@crimson.no> | 2017-01-16 21:36:27 +0100 |
---|---|---|
committer | Robin Burchell <robin.burchell@crimson.no> | 2017-01-17 21:39:58 +0000 |
commit | 7ed968be5564d8c19d918a3ce8e0683c162f4f1b (patch) | |
tree | 4f93e7ac2b51f00e2c2f6ae973cd59a0e97224e9 /src/qml/qml/qqmltypeloader.cpp | |
parent | f88ac80a28467648f5e0c5c3d7dc978c4967af4c (diff) |
qml: Remove last foreach, and mark QT_NO_FOREACH
Just src/imports/ to go...
Change-Id: Ib4484676e24655cb950b3c4bb6495ff0e7f9700f
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmltypeloader.cpp')
-rw-r--r-- | src/qml/qml/qqmltypeloader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmltypeloader.cpp b/src/qml/qml/qqmltypeloader.cpp index 76ac15e2f1..ac993a1037 100644 --- a/src/qml/qml/qqmltypeloader.cpp +++ b/src/qml/qml/qqmltypeloader.cpp @@ -2428,7 +2428,7 @@ void QQmlTypeData::continueLoadFromIR() QList<QQmlError> errors; - foreach (const QV4::CompiledData::Import *import, m_document->imports) { + for (const QV4::CompiledData::Import *import : qAsConst(m_document->imports)) { if (!addImport(import, &errors)) { Q_ASSERT(errors.size()); QQmlError error(errors.takeFirst()); |