Replace remaining instances of Q_FOREACH with C++11 range-based for loops

This commit is contained in:
Janek Bevendorff committed 2017-03-10 16:11:57 +01:00
1 parent 2872f1706c
commit cb51ec61f7
6 files changed
+72 -44

No files matched your search

+3 -2
View File
@@ -34,10 +34,11 @@ void AccessControlDialog::setUrl(const QString &url)
"Please select whether you want to allow access.")).arg(QUrl(url).host()));
}
void AccessControlDialog::setItems(const QList<Entry *> &items)
void AccessControlDialog::setItems(const QList<Entry*> &items)
{
Q_FOREACH (Entry * entry, items)
for (Entry* entry: items) {
ui->itemsList->addItem(entry->title() + " - " + entry->username());
}
}
bool AccessControlDialog::remember() const