mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
KDEFI: Constify for arguments
Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
parent
7f567b8536
commit
c9a6a51285
@ -59,7 +59,7 @@ QVector<PasswordEntry> KWalletPasswordBackend::getEntries(const QUrl &url)
|
|||||||
|
|
||||||
QVector<PasswordEntry> list;
|
QVector<PasswordEntry> list;
|
||||||
|
|
||||||
for (const PasswordEntry &entry : m_allEntries) {
|
for (const PasswordEntry &entry : qAsConst(m_allEntries)) {
|
||||||
if (entry.host == host) {
|
if (entry.host == host) {
|
||||||
list.append(entry);
|
list.append(entry);
|
||||||
}
|
}
|
||||||
@ -204,7 +204,7 @@ void KWalletPasswordBackend::initialize()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const PasswordEntry &entry : m_allEntries) {
|
for (const PasswordEntry &entry : qAsConst(m_allEntries)) {
|
||||||
m_wallet->writeEntry(entry.id.toString(), encodeEntry(entry));
|
m_wallet->writeEntry(entry.id.toString(), encodeEntry(entry));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user