summaryrefslogtreecommitdiffstats
path: root/src/gui/itemviews/qabstractitemview.cpp
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-06-10 10:54:53 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-06-10 10:55:33 (GMT)
commit8179a9e2cd52b24c70b194106dd170ed1bb677e4 (patch)
tree7284c59d7a89ab54612a4bc098a8929050c3e184 /src/gui/itemviews/qabstractitemview.cpp
parentf2c4d2fe8a846cfce457512ef1806a7276745590 (diff)
downloadQt-8179a9e2cd52b24c70b194106dd170ed1bb677e4.zip
Qt-8179a9e2cd52b24c70b194106dd170ed1bb677e4.tar.gz
Qt-8179a9e2cd52b24c70b194106dd170ed1bb677e4.tar.bz2
small code cleanup that improves some loops
it uses les foreach
Diffstat (limited to 'src/gui/itemviews/qabstractitemview.cpp')
-rw-r--r--src/gui/itemviews/qabstractitemview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/itemviews/qabstractitemview.cpp b/src/gui/itemviews/qabstractitemview.cpp
index c90216b..d353c2d 100644
--- a/src/gui/itemviews/qabstractitemview.cpp
+++ b/src/gui/itemviews/qabstractitemview.cpp
@@ -2398,8 +2398,8 @@ void QAbstractItemView::updateEditorGeometries()
//we release the editor outside of the loop because it might change the focus and try
//to change the d->editors list.
- foreach(QWidget *editor, editorsToRelease) {
- d->releaseEditor(editor);
+ for (int i = 0; i < editorsToRelease.count(); ++i) {
+ d->releaseEditor(editorsToRelease.at(i));
}
}