aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/snippets
diff options
context:
space:
mode:
authorAnton Kudryavtsev <a.kudryavtsev@netris.ru>2016-08-23 11:33:30 +0300
committerAnton Kudryavtsev <a.kudryavtsev@netris.ru>2016-09-02 18:26:59 +0000
commit73baf55b107350211e53bdf839a6ba2d273865bd (patch)
tree651e9dc758d79065219c40fb48063be77a012ca2 /tests/auto/snippets
parent33904b63ce9971efc3763a0048a084ec3324dfc4 (diff)
Replace 'foreach' with 'range for'
And add QT_NO_FOREACH define to .qmake.conf. Now QuickControls2 is 'foreach' free. Change-Id: I98695258859decadae6fd2f23f5f6f5ef2b0550f Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'tests/auto/snippets')
-rw-r--r--tests/auto/snippets/tst_snippets.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/snippets/tst_snippets.cpp b/tests/auto/snippets/tst_snippets.cpp
index fb581b90..6ca9e72c 100644
--- a/tests/auto/snippets/tst_snippets.cpp
+++ b/tests/auto/snippets/tst_snippets.cpp
@@ -101,7 +101,7 @@ void tst_Snippets::screenshots()
QVERIFY(QTest::qWaitForWindowActive(&view));
bool generateScreenshot = true;
- foreach (const QString &baseName, nonVisualSnippets) {
+ for (const QString &baseName : qAsConst(nonVisualSnippets)) {
if (input.contains(baseName)) {
generateScreenshot = false;
break;