summaryrefslogtreecommitdiff
path: root/tests/auto/qxmlquery/tst_qxmlquery.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-09-04 19:35:21 +0200
committerMarc Mutz <marc.mutz@kdab.com>2016-09-20 13:14:43 +0000
commitdba42c925db368aa958c38c6a3481f18a57bd71f (patch)
tree12c3adc08ae21931fadeccf21a393c1a612c5045 /tests/auto/qxmlquery/tst_qxmlquery.cpp
parenta0499c7c3ed5d93d219199184da16e508dd84a36 (diff)
downloadqtxmlpatterns-dba42c925db368aa958c38c6a3481f18a57bd71f.tar.gz
Eradicate Q_FOREACH loops and mark the module as Q_FOREACH-free
In network-settings.h, replaced a few QList of static size with C arrays. Change-Id: Iac32e68f76e3c53fa03b6a2943e1dfb5adbe6fad Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tests/auto/qxmlquery/tst_qxmlquery.cpp')
-rw-r--r--tests/auto/qxmlquery/tst_qxmlquery.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qxmlquery/tst_qxmlquery.cpp b/tests/auto/qxmlquery/tst_qxmlquery.cpp
index 1754d7d..a7f3e8b 100644
--- a/tests/auto/qxmlquery/tst_qxmlquery.cpp
+++ b/tests/auto/qxmlquery/tst_qxmlquery.cpp
@@ -977,8 +977,8 @@ void tst_QXmlQuery::evaluateToReceiver_data() const
{
QTest::addColumn<QString>("inputQuery");
- foreach (QString const& query, queries())
- {
+ const auto queries_ = queries();
+ for (QString const& query : queries_) {
/* This outputs a URI specific to the environment, so we can't use it for this
* particular test. */
if (query != QLatin1String("staticBaseURI.xq"))