diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 17:53:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 17:53:34 +0300 |
commit | 456e03c0e942e8082f1fd67c6f852524fe300710 (patch) | |
tree | 255e81d7d306cf2559ed70d95698cf790040351f /src/gui/widgets/createwidget.h | |
parent | 606f836e9d1c17801ed4564a300cdbaa26097383 (diff) | |
download | plus-456e03c0e942e8082f1fd67c6f852524fe300710.tar.gz plus-456e03c0e942e8082f1fd67c6f852524fe300710.tar.bz2 plus-456e03c0e942e8082f1fd67c6f852524fe300710.tar.xz plus-456e03c0e942e8082f1fd67c6f852524fe300710.zip |
Rename CREATEWIDGET* macroses.
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) \ |