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
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/settingsdialog.cpp')
-rw-r--r--src/gui/settingsdialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/settingsdialog.cpp b/src/gui/settingsdialog.cpp
index 4402d9576..d09790c97 100644
--- a/src/gui/settingsdialog.cpp
+++ b/src/gui/settingsdialog.cpp
@@ -227,7 +227,7 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent)
this, &SettingsDialog::accountAdded);
connect(AccountManager::instance(), &AccountManager::accountRemoved,
this, &SettingsDialog::accountRemoved);
- foreach (auto ai, AccountManager::instance()->accounts()) {
+ for (const auto &ai : AccountManager::instance()->accounts()) {
accountAdded(ai.data());
}
@@ -441,7 +441,8 @@ void SettingsDialog::customizeStyle()
QString background(palette().base().color().name());
_ui->toolBar->setStyleSheet(TOOLBAR_CSS().arg(background, dark, highlightColor, highlightTextColor));
- for (auto a : findChildren<ToolButtonAction *>()) {
+ const auto &toolButtonActions = findChildren<ToolButtonAction *>();
+ for (auto *a : toolButtonActions) {
a->updateIcon();
}
}