diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-09-04 19:35:21 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-09-20 13:14:43 +0000 |
commit | dba42c925db368aa958c38c6a3481f18a57bd71f (patch) | |
tree | 12c3adc08ae21931fadeccf21a393c1a612c5045 /tests/auto/qabstractxmlnodemodel | |
parent | a0499c7c3ed5d93d219199184da16e508dd84a36 (diff) | |
download | qtxmlpatterns-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.cpp | 2 |
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; |