diff options
author | Liang Qi <liang.qi@qt.io> | 2016-09-21 08:35:11 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2016-09-21 08:35:11 +0200 |
commit | 0aaf8a5f8541960466d695729104d71c23998df9 (patch) | |
tree | d8d37fb42f923eaad78a85157d2f655e8a2c2d2e /examples/xmlpatterns/shared/xmlsyntaxhighlighter.cpp | |
parent | a7c672c05a29ee6894197c77063a307ea022a97b (diff) | |
parent | 21cc71ced3565585f7a2f94875ed845355ab2064 (diff) | |
download | qtxmlpatterns-0aaf8a5f8541960466d695729104d71c23998df9.tar.gz |
Merge remote-tracking branch 'origin/5.8' into dev
Change-Id: Ie4eaf067382d8ca5e139a994e045e83f3f90760c
Diffstat (limited to 'examples/xmlpatterns/shared/xmlsyntaxhighlighter.cpp')
-rw-r--r-- | examples/xmlpatterns/shared/xmlsyntaxhighlighter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/xmlpatterns/shared/xmlsyntaxhighlighter.cpp b/examples/xmlpatterns/shared/xmlsyntaxhighlighter.cpp index 85c8020..385fd11 100644 --- a/examples/xmlpatterns/shared/xmlsyntaxhighlighter.cpp +++ b/examples/xmlpatterns/shared/xmlsyntaxhighlighter.cpp @@ -73,7 +73,7 @@ XmlSyntaxHighlighter::XmlSyntaxHighlighter(QTextDocument *parent) void XmlSyntaxHighlighter::highlightBlock(const QString &text) { - foreach (const HighlightingRule &rule, highlightingRules) { + for (const HighlightingRule &rule : qAsConst(highlightingRules)) { QRegExp expression(rule.pattern); int index = text.indexOf(expression); while (index >= 0) { |