Use Q_FOREACH instead of QListIterator.

This commit is contained in:
Felix Geyer 2012-05-14 17:56:43 +02:00
parent cd41727583
commit 924130e0fe
4 changed files with 6 additions and 18 deletions

View file

@ -351,9 +351,7 @@ bool DatabaseWidget::canDeleteCurrentGoup()
void DatabaseWidget::truncateHistories()
{
QList<Entry*> allEntries = m_db->rootGroup()->entriesRecursive(false);
QListIterator<Entry*> i(allEntries);
while (i.hasNext()) {
Entry* entry = i.next();
Q_FOREACH (Entry* entry, allEntries) {
entry->truncateHistory();
}
}