summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2021-01-28 11:36:23 +0100
committerMitch Curtis <mitch.curtis@qt.io>2021-06-14 13:41:09 +0000
commit1ef0eba378baac7d936e7ba92f6f63c59c264945 (patch)
tree6a6ff017f3cce379a29facfdb4798c833e56c7b5
parent8ef025f7326c37c2b74b33fa5979b83f816b8f23 (diff)
downloadqt-creator-1ef0eba378baac7d936e7ba92f6f63c59c264945.tar.gz
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>
-rw-r--r--share/qtcreator/cplusplus/wrappedQtHeaders/QtCore/qobjectdefs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore/qobjectdefs.h b/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore/qobjectdefs.h
index 15d19ea7b4..4c805777d3 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<bool>("Q_PROPERTY"), #arg);
#define SIGNAL(arg) #arg
#define SLOT(arg) #arg