mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36: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;
|
||||
|
||||
for (const PasswordEntry &entry : m_allEntries) {
|
||||
for (const PasswordEntry &entry : qAsConst(m_allEntries)) {
|
||||
if (entry.host == host) {
|
||||
list.append(entry);
|
||||
}
|
||||
@ -204,7 +204,7 @@ void KWalletPasswordBackend::initialize()
|
||||
return;
|
||||
}
|
||||
|
||||
for (const PasswordEntry &entry : m_allEntries) {
|
||||
for (const PasswordEntry &entry : qAsConst(m_allEntries)) {
|
||||
m_wallet->writeEntry(entry.id.toString(), encodeEntry(entry));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user