summaryrefslogtreecommitdiff
path: root/tests/auto/patternistexamples/tst_patternistexamples.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2016-09-21 08:35:11 +0200
committerLiang Qi <liang.qi@qt.io>2016-09-21 08:35:11 +0200
commit0aaf8a5f8541960466d695729104d71c23998df9 (patch)
treed8d37fb42f923eaad78a85157d2f655e8a2c2d2e /tests/auto/patternistexamples/tst_patternistexamples.cpp
parenta7c672c05a29ee6894197c77063a307ea022a97b (diff)
parent21cc71ced3565585f7a2f94875ed845355ab2064 (diff)
downloadqtxmlpatterns-0aaf8a5f8541960466d695729104d71c23998df9.tar.gz
Merge remote-tracking branch 'origin/5.8' into dev
Change-Id: Ie4eaf067382d8ca5e139a994e045e83f3f90760c
Diffstat (limited to 'tests/auto/patternistexamples/tst_patternistexamples.cpp')
-rw-r--r--tests/auto/patternistexamples/tst_patternistexamples.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/patternistexamples/tst_patternistexamples.cpp b/tests/auto/patternistexamples/tst_patternistexamples.cpp
index 3aed232..6abeb04 100644
--- a/tests/auto/patternistexamples/tst_patternistexamples.cpp
+++ b/tests/auto/patternistexamples/tst_patternistexamples.cpp
@@ -142,7 +142,7 @@ void tst_PatternistExamples::checkQueries_data() const
QCOMPARE(queryExamples.count(), int(XQueryFileCount));
- foreach(QString q, queryExamples)
+ for (const QString &q : queryExamples)
QTest::newRow(q.toLocal8Bit().constData()) << q;
}
@@ -183,7 +183,7 @@ void tst_PatternistExamples::checkXMLFiles_data() const
QCOMPARE(xmlFiles.count(), int(XMLFileCount));
- foreach(QString q, xmlFiles)
+ for (const QString &q : xmlFiles)
QTest::newRow(q.toLocal8Bit().constData()) << q;
}