]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Replaced the loop to fill m_sizeHintCache with QSizeF() by a simple m_sizeHintCache...
authorEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Sat, 24 Aug 2013 16:03:40 +0000 (18:03 +0200)
committerEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Sat, 24 Aug 2013 16:03:40 +0000 (18:03 +0200)
REVIEW: 112179

src/kitemviews/private/kitemlistsizehintresolver.cpp

index c86ce2bf859866f85b53fea607a38f7abf840e04..0e2286b453a9c539358528318288c9e695de1b6c 100644 (file)
@@ -139,8 +139,5 @@ void KItemListSizeHintResolver::itemsChanged(int index, int count, const QSet<QB
 
 void KItemListSizeHintResolver::clearCache()
 {
-    const int count = m_sizeHintCache.count();
-    for (int i = 0; i < count; ++i) {
-        m_sizeHintCache[i] = QSizeF();
-    }
+    m_sizeHintCache.fill(QSizeF());
 }