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:
parent
52370301aa
commit
6370bcf6c8
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user