From c5c007b813479e0d4bf6b8321602753d208c5bf4 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 26 Sep 2012 10:55:05 +0200 Subject: Rename a variable it -> childIt. There is another iterator called it at the top of this function. Change-Id: I8addf47d66f098c5d811eb54674525eddb4d4a1f Reviewed-by: David Faure --- src/corelib/itemmodels/qsortfilterproxymodel.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/corelib/itemmodels/qsortfilterproxymodel.cpp') 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 source_rows_remove_set = qVectorToSet(source_rows_remove); - QVector::iterator it = m->mapped_children.end(); - while (it != m->mapped_children.begin()) { - --it; - const QModelIndex source_child_index = *it; + QVector::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); } } -- cgit v1.2.3