1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

KDEFI: port foreach -> range-based for

Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
Juraj Oravec 2019-12-30 16:28:38 +01:00
parent 52370301aa
commit 6370bcf6c8
No known key found for this signature in database
GPG Key ID: 63ACB65056BC8D07

View File

@ -59,7 +59,7 @@ QVector<PasswordEntry> KWalletPasswordBackend::getEntries(const QUrl &url)
QVector<PasswordEntry> list;
foreach (const PasswordEntry &entry, m_allEntries) {
for (const PasswordEntry &entry : m_allEntries) {
if (entry.host == host) {
list.append(entry);
}
@ -204,7 +204,7 @@ void KWalletPasswordBackend::initialize()
return;
}
foreach (const PasswordEntry &entry, m_allEntries) {
for (const PasswordEntry &entry : m_allEntries) {
m_wallet->writeEntry(entry.id.toString(), encodeEntry(entry));
}
}