Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/accountmanager.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/accountmanager.cpp b/src/gui/accountmanager.cpp
index 62097dc40..ac9e6ce5a 100644
--- a/src/gui/accountmanager.cpp
+++ b/src/gui/accountmanager.cpp
@@ -255,10 +255,8 @@ void AccountManager::saveAccountHelper(Account *acc, QSettings &settings, bool s
acc->_credentials->persist();
}
- auto i = acc->_settingsMap.constBegin();
- while (i != acc->_settingsMap.constEnd()) {
- settings.setValue(i.key(), i.value());
- ++i;
+ for (auto it = acc->_settingsMap.constBegin(); it != acc->_settingsMap.constEnd(); ++it) {
+ settings.setValue(it.key(), it.value());
}
// HACK: Save http_user also as user