┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kfileitemmodelrolesupdater.cpp
diff options
context:
space:
mode:
authorAlexander Lohnau <[email protected]>2020-10-24 16:46:34 +0200
committerAlexander Lohnau <[email protected]>2020-10-24 16:46:34 +0200
commit2448f88c5f42d7a2040fcf3bcd3c5f2a2f62cd03 (patch)
tree7a9164be1621a4c5696e776be299293ad1f1da60 /src/kitemviews/kfileitemmodelrolesupdater.cpp
parent97415729c34851df75c77a67f27d6299c00bfbc4 (diff)
Use mutable iterators where required
Diffstat (limited to 'src/kitemviews/kfileitemmodelrolesupdater.cpp')
-rw-r--r--src/kitemviews/kfileitemmodelrolesupdater.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kitemviews/kfileitemmodelrolesupdater.cpp b/src/kitemviews/kfileitemmodelrolesupdater.cpp
index b9c6ccd29..8f3ddceed 100644
--- a/src/kitemviews/kfileitemmodelrolesupdater.cpp
+++ b/src/kitemviews/kfileitemmodelrolesupdater.cpp
@@ -943,7 +943,9 @@ void KFileItemModelRolesUpdater::updateChangedItems()
QList<int> visibleChangedIndexes;
QList<int> invisibleChangedIndexes;
- for (const KFileItem& item : qAsConst(m_changedItems)) {
+ QMutableSetIterator<KFileItem> it(m_changedItems);
+ while (it.hasNext()) {
+ const KFileItem item = it.next();
const int index = m_model->index(item);
if (index < 0) {