From 456e03c0e942e8082f1fd67c6f852524fe300710 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Jun 2015 17:53:34 +0300 Subject: Rename CREATEWIDGET* macroses. --- src/gui/widgets/createwidget.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/widgets/createwidget.h') 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(Widget::callPostInit(new type(__VA_ARGS__))) #define CREATEWIDGETR0(type) \ -- cgit v1.2.3-70-g09d2