summaryrefslogtreecommitdiff
path: root/src/gui/widgets/createwidget.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 16:12:35 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 16:12:35 +0300
commit812193ffc15ce42487b92c6c2294475bfcf0b5d9 (patch)
treef5491e9b6c349e6b21e5ab3f2a5bd7f269ebc50d /src/gui/widgets/createwidget.h
parent33dc4573f4defbfb40b62d2d5ee1ed8f423c9db7 (diff)
downloadplus-812193ffc15ce42487b92c6c2294475bfcf0b5d9.tar.gz
plus-812193ffc15ce42487b92c6c2294475bfcf0b5d9.tar.bz2
plus-812193ffc15ce42487b92c6c2294475bfcf0b5d9.tar.xz
plus-812193ffc15ce42487b92c6c2294475bfcf0b5d9.zip
Add macro for create widget, call postInit and return widget.
Diffstat (limited to 'src/gui/widgets/createwidget.h')
-rw-r--r--src/gui/widgets/createwidget.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/createwidget.h b/src/gui/widgets/createwidget.h
index 3a2102676..61f85e4c0 100644
--- a/src/gui/widgets/createwidget.h
+++ b/src/gui/widgets/createwidget.h
@@ -26,6 +26,6 @@
var->postInit()
#define CREATEWIDGET2(type, ...) \
- static_cast<type>(Widget::callPostInit(new type(__VA_ARGS__)))
+ static_cast<type*>(Widget::callPostInit(new type(__VA_ARGS__)))
#endif // GUI_WIDGETS_CREATEWIDGET_H