From b3c0e7bc5af750e2b2ce6e753b559bb7afe83f94 Mon Sep 17 00:00:00 2001 From: Uwe Date: Sun, 10 Jul 2022 00:14:34 +0200 Subject: [PATCH] [Gui] [skip CI] DlgPreferencesImp: a code style improvement --- src/Gui/DlgPreferencesImp.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/Gui/DlgPreferencesImp.cpp b/src/Gui/DlgPreferencesImp.cpp index 22a2b84e5f..7ba798d8a3 100644 --- a/src/Gui/DlgPreferencesImp.cpp +++ b/src/Gui/DlgPreferencesImp.cpp @@ -22,8 +22,9 @@ #include "PreCompiled.h" #ifndef _PreComp_ -# include # include +# include + # include # include # include @@ -124,9 +125,11 @@ QTabWidget* DlgPreferencesImp::createTabForGroup(const std::string &groupName) item->setText(QObject::tr(groupNameQString.toLatin1())); item->setToolTip(QObject::tr(groupNameQString.toLatin1())); std::string fileName = groupName; - for (auto & ch : fileName) { - if (ch == ' ') ch = '_'; - else ch = tolower(ch); + for (auto &ch : fileName) { + if (ch == ' ') + ch = '_'; + else + ch = tolower(ch); } fileName = std::string("preferences-") + fileName; QPixmap icon = Gui::BitmapFactory().pixmapFromSvg(fileName.c_str(), QSize(48, 48));