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:
Mitch Curtis
2021-01-28 11:36:23 +01:00
parent 8ef025f732
commit 1ef0eba378

View File

@@ -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