summaryrefslogtreecommitdiff
path: root/tests/auto/qabstractxmlnodemodel
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2019-06-29 22:35:10 +0200
committerMarc Mutz <marc.mutz@kdab.com>2019-06-30 18:50:44 +0200
commitd32c85cafa29001ada3f7515a9b8f2d76164193a (patch)
treee598a7c5b7d0e4a27b0455dcb4064a7567ebd03e /tests/auto/qabstractxmlnodemodel
parent7d4cbe219a44b313467c0c6f89acd713a057ecbb (diff)
downloadqtxmlpatterns-d32c85cafa29001ada3f7515a9b8f2d76164193a.tar.gz
Fix Q_FOREACH in commented-out code
The module is under QT_NO_FOREACH, so don't create a surprise if the code gets uncommented. Yes, this is borderline OCD, indulge me. I like modules that are grep-clean re:foreach... Change-Id: I8211c40d359c308a18fadbc56640861c65cd270f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
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 07a702b..62668c2 100644
--- a/tests/auto/qabstractxmlnodemodel/LoadingModel.cpp
+++ b/tests/auto/qabstractxmlnodemodel/LoadingModel.cpp
@@ -40,7 +40,7 @@ LoadingModel::LoadingModel(const Node::Vector &content,
, m_nodes(content)
{
/*
- foreach(const Node *n, content)
+ for (const Node *n : content)
qDebug() << "this:" << n
<< "kind:" << n->kind
<< "parent: " << n->parent