diff options
Diffstat (limited to 'src/gui/widgets/createwidget.h')
-rw-r--r-- | src/gui/widgets/createwidget.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/createwidget.h b/src/gui/widgets/createwidget.h index 70722a9e3..54d92d2cb 100644 --- a/src/gui/widgets/createwidget.h +++ b/src/gui/widgets/createwidget.h @@ -21,18 +21,18 @@ #ifndef GUI_WIDGETS_CREATEWIDGET_H #define GUI_WIDGETS_CREATEWIDGET_H -#define CREATEWIDGET(var, type, ...) \ +#define CREATEWIDGETV(var, type, ...) \ var = new type(__VA_ARGS__); \ var->postInit() -#define CREATEWIDGET0(type, ...) \ +#define CREATEWIDGET(type, ...) \ (new type(__VA_ARGS__))->postInit() -#define CREATEWIDGET1(var, type) \ +#define CREATEWIDGETV0(var, type) \ var = new type; \ var->postInit() -#define CREATEWIDGET2(type, ...) \ +#define CREATEWIDGETR(type, ...) \ static_cast<type*>(Widget::callPostInit(new type(__VA_ARGS__))) #define CREATEWIDGETR0(type) \ |