diff options
Diffstat (limited to 'src/gui/application.cpp')
-rw-r--r-- | src/gui/application.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/application.cpp b/src/gui/application.cpp index a04ee2f13..e9a9ea3b1 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -174,8 +174,9 @@ bool Application::configVersionMigration() settings->endGroup(); // Wipe confusing keys from the future, ignore the others - for (const auto &badKey : deleteKeys) + for (const auto &badKey : qAsConst(deleteKeys)) { settings->remove(badKey); + } } configFile.setClientVersionString(MIRALL_VERSION_STRING); @@ -370,7 +371,8 @@ Application::Application(int &argc, char **argv) this, &Application::slotAccountStateAdded); connect(AccountManager::instance(), &AccountManager::accountRemoved, this, &Application::slotAccountStateRemoved); - for (const auto &ai : AccountManager::instance()->accounts()) { + const auto accounts = AccountManager::instance()->accounts(); + for (const auto &ai : accounts) { slotAccountStateAdded(ai.data()); } |