[Sketcher] [skip CI] CommandCreateGeo: code style fix

- the MSVC IDE had problems with this, thus apply our .clang style
This commit is contained in:
Uwe
2022-07-27 16:05:39 +02:00
parent 054dd44315
commit 03041f0aff

View File

@@ -91,21 +91,21 @@
using namespace std;
using namespace SketcherGui;
#define CONSTRUCTION_UPDATE_ACTION(CLASS,ICON) \
#define CONSTRUCTION_UPDATE_ACTION(CLASS, ICON) \
/* This macro creates an updateAction() function that will toggle between normal & construction icon */ \
void CLASS::updateAction(int mode) \
{ \
auto act = getAction(); \
if (act) { \
switch (mode) { \
case Normal: \
act->setIcon(Gui::BitmapFactory().iconFromTheme(ICON)); \
break; \
case Construction: \
act->setIcon(Gui::BitmapFactory().iconFromTheme(ICON"_Constr")); \
break; \
} \
} \
void CLASS::updateAction(int mode) \
{ \
auto act = getAction(); \
if (act) { \
switch (mode) { \
case Normal: \
act->setIcon(Gui::BitmapFactory().iconFromTheme(ICON)); \
break; \
case Construction: \
act->setIcon(Gui::BitmapFactory().iconFromTheme(ICON "_Constr")); \
break; \
} \
} \
}
namespace SketcherGui {