mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-06-09 07:22:50 -04:00
Convert Q_FOREACH loops to C++11 for loops.
Q_FOREACH will de deprecated soon.
This commit is contained in:
parent
ad834f0f58
commit
fff9e7ac46
31 changed files with 202 additions and 143 deletions
|
@ -139,8 +139,8 @@ void DatabaseSettingsWidget::transformRoundsBenchmark()
|
|||
|
||||
void DatabaseSettingsWidget::truncateHistories()
|
||||
{
|
||||
QList<Entry*> allEntries = m_db->rootGroup()->entriesRecursive(false);
|
||||
Q_FOREACH (Entry* entry, allEntries) {
|
||||
const QList<Entry*> allEntries = m_db->rootGroup()->entriesRecursive(false);
|
||||
for (Entry* entry : allEntries) {
|
||||
entry->truncateHistory();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue