diff options
| author | Méven Car <[email protected]> | 2026-01-22 17:08:11 +0100 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2026-01-22 17:18:41 +0100 |
| commit | 1bfd5edb5a573cd62a594d5dc6a1a5b35232ac05 (patch) | |
| tree | 9dc5c0a3b3bbd631813c8ae391931a93eac5294e /src/kitemviews | |
| parent | 7570ba16a9cbc911df7a03394d2128c63d8032da (diff) | |
clang-tidy: fix modernize-loop-convert
Diffstat (limited to 'src/kitemviews')
| -rw-r--r-- | src/kitemviews/kfileitemmodel.cpp | 4 | ||||
| -rw-r--r-- | src/kitemviews/private/kitemlistviewanimation.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp index 383f45e9f..5afcd0fb3 100644 --- a/src/kitemviews/kfileitemmodel.cpp +++ b/src/kitemviews/kfileitemmodel.cpp @@ -1838,8 +1838,8 @@ void KFileItemModel::emitItemsChangedAndTriggerResorting(const KItemRangeList &i void KFileItemModel::resetRoles() { - for (int i = 0; i < RolesCount; ++i) { - m_requestRole[i] = false; + for (bool &i : m_requestRole) { + i = false; } } diff --git a/src/kitemviews/private/kitemlistviewanimation.cpp b/src/kitemviews/private/kitemlistviewanimation.cpp index e07961e31..2ea884461 100644 --- a/src/kitemviews/private/kitemlistviewanimation.cpp +++ b/src/kitemviews/private/kitemlistviewanimation.cpp @@ -19,8 +19,8 @@ KItemListViewAnimation::KItemListViewAnimation(QObject *parent) KItemListViewAnimation::~KItemListViewAnimation() { - for (int type = 0; type < AnimationTypeCount; ++type) { - qDeleteAll(m_animation[type]); + for (const auto &type : m_animation) { + qDeleteAll(type); } } |
