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

KDEFI: Constify for arguments

Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
Juraj Oravec 2019-12-30 17:03:50 +01:00
parent 7f567b8536
commit c9a6a51285
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;
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));
}
}