aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/parser
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-05-11 14:39:05 +0200
committerMarc Mutz <marc.mutz@kdab.com>2016-05-11 20:25:04 +0000
commit50b12610a701e14c315839cd091e0f654c52f019 (patch)
tree9d97822e7178ddb86f6fdf680748d44b4bbc817a /src/qml/parser
parent28128f2dc6c5eb63d52658ede840e02b06f9ac2c (diff)
Eradicate Q_FOREACH loops from headers
They may prevent use of QT_NO_FOREACH in other Qt modules. Change-Id: Iafc04a73579a90492f3ff303978b78b71eec4e55 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/qml/parser')
-rw-r--r--src/qml/parser/qqmljsparser_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/parser/qqmljsparser_p.h b/src/qml/parser/qqmljsparser_p.h
index 02dbe7d323..00ffb6aca3 100644
--- a/src/qml/parser/qqmljsparser_p.h
+++ b/src/qml/parser/qqmljsparser_p.h
@@ -174,7 +174,7 @@ public:
inline DiagnosticMessage diagnosticMessage() const
{
- foreach (const DiagnosticMessage &d, diagnostic_messages) {
+ for (const DiagnosticMessage &d : diagnostic_messages) {
if (d.kind != DiagnosticMessage::Warning)
return d;
}