forked from qt-creator/qt-creator
Fix Q_PROPERTY warning
Explicitly cast to bool since that seems to be the intention. Fixes: QTBUG-90607 Change-Id: Ic7debcc6af4415af6288aa1739bd602dbca0e251 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
# define Q_SLOT __attribute__((annotate("qt_slot")))
|
||||
#endif
|
||||
|
||||
#define Q_PROPERTY(arg...) static_assert("Q_PROPERTY", #arg);
|
||||
#define Q_PROPERTY(arg...) static_assert(static_cast<bool>("Q_PROPERTY"), #arg);
|
||||
|
||||
#define SIGNAL(arg) #arg
|
||||
#define SLOT(arg) #arg
|
||||
|
Reference in New Issue
Block a user