diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 17:01:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 17:01:37 +0300 |
commit | 2cae1255ee9022d840fe5be37ed3a953c7dd8143 (patch) | |
tree | 4ffc7695dca43d9da50034b0cd0c229718834bc0 /src/gui/widgets/createwidget.h | |
parent | 9dc34ffd9866b3783d8e93f5594bab6bd5b4efc0 (diff) | |
download | mv-2cae1255ee9022d840fe5be37ed3a953c7dd8143.tar.gz mv-2cae1255ee9022d840fe5be37ed3a953c7dd8143.tar.bz2 mv-2cae1255ee9022d840fe5be37ed3a953c7dd8143.tar.xz mv-2cae1255ee9022d840fe5be37ed3a953c7dd8143.zip |
Use CREATEWIDGET macro in game.
Diffstat (limited to 'src/gui/widgets/createwidget.h')
-rw-r--r-- | src/gui/widgets/createwidget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/widgets/createwidget.h b/src/gui/widgets/createwidget.h index 61f85e4c0..9c72b95f5 100644 --- a/src/gui/widgets/createwidget.h +++ b/src/gui/widgets/createwidget.h @@ -25,6 +25,10 @@ var = new type(__VA_ARGS__); \ var->postInit() +#define CREATEWIDGET1(var, type) \ + var = new type; \ + var->postInit() + #define CREATEWIDGET2(type, ...) \ static_cast<type*>(Widget::callPostInit(new type(__VA_ARGS__))) |