summaryrefslogtreecommitdiffstats
path: root/src/corelib/itemmodels
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-09-26 10:55:05 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-27 02:27:47 +0200
commitc5c007b813479e0d4bf6b8321602753d208c5bf4 (patch)
tree3ea1ba619d21a9203613bac1f8ca3f3b590cf1ef /src/corelib/itemmodels
parentd85dd245f9a1a2959af4d2d68a45cf1dca419767 (diff)
Rename a variable it -> childIt.
There is another iterator called it at the top of this function. Change-Id: I8addf47d66f098c5d811eb54674525eddb4d4a1f Reviewed-by: David Faure <faure@kde.org>
Diffstat (limited to 'src/corelib/itemmodels')
-rw-r--r--src/corelib/itemmodels/qsortfilterproxymodel.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/corelib/itemmodels/qsortfilterproxymodel.cpp b/src/corelib/itemmodels/qsortfilterproxymodel.cpp
index 17480862ac..f9cacded3f 100644
--- a/src/corelib/itemmodels/qsortfilterproxymodel.cpp
+++ b/src/corelib/itemmodels/qsortfilterproxymodel.cpp
@@ -1173,12 +1173,12 @@ void QSortFilterProxyModelPrivate::_q_sourceDataChanged(const QModelIndex &sourc
remove_source_items(m->proxy_rows, m->source_rows,
source_rows_remove, source_parent, Qt::Vertical);
QSet<int> source_rows_remove_set = qVectorToSet(source_rows_remove);
- QVector<QModelIndex>::iterator it = m->mapped_children.end();
- while (it != m->mapped_children.begin()) {
- --it;
- const QModelIndex source_child_index = *it;
+ QVector<QModelIndex>::iterator childIt = m->mapped_children.end();
+ while (childIt != m->mapped_children.begin()) {
+ --childIt;
+ const QModelIndex source_child_index = *childIt;
if (source_rows_remove_set.contains(source_child_index.row())) {
- it = m->mapped_children.erase(it);
+ childIt = m->mapped_children.erase(childIt);
remove_from_mapping(source_child_index);
}
}