From 1ef0eba378baac7d936e7ba92f6f63c59c264945 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Thu, 28 Jan 2021 11:36:23 +0100 Subject: [PATCH] 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 --- share/qtcreator/cplusplus/wrappedQtHeaders/QtCore/qobjectdefs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore/qobjectdefs.h b/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore/qobjectdefs.h index 15d19ea7b49..4c805777d37 100644 --- a/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore/qobjectdefs.h +++ b/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore/qobjectdefs.h @@ -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("Q_PROPERTY"), #arg); #define SIGNAL(arg) #arg #define SLOT(arg) #arg