Replaced the loop to fill m_sizeHintCache with QSizeF() by a simple m_sizeHintCache.fill() in KItemListSizeHintResolver::clearCache().

REVIEW: 112179
This commit is contained in:
Emmanuel Pescosta 2013-08-24 18:03:40 +02:00
parent cdae9ab703
commit 38adcc0c1c

View 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());
}