summaryrefslogtreecommitdiff
path: root/tests/auto/qabstractxmlnodemodel
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/qabstractxmlnodemodel
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/qabstractxmlnodemodel')
-rw-r--r--tests/auto/qabstractxmlnodemodel/LoadingModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qabstractxmlnodemodel/LoadingModel.cpp b/tests/auto/qabstractxmlnodemodel/LoadingModel.cpp
index 76608f4..07a702b 100644
--- a/tests/auto/qabstractxmlnodemodel/LoadingModel.cpp
+++ b/tests/auto/qabstractxmlnodemodel/LoadingModel.cpp
@@ -169,7 +169,7 @@ QXmlNodeModelIndex LoadingModel::nextFromSimpleAxis(QAbstractXmlNodeModel::Simpl
QVector<QXmlNodeModelIndex> LoadingModel::attributes(const QXmlNodeModelIndex &ni) const
{
QVector<QXmlNodeModelIndex> retval;
- foreach(const Node *n, toInternal(ni)->attributes)
+ for (const Node *n : toInternal(ni)->attributes)
retval.append(createIndex(n));
return retval;