summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2020-10-13 14:13:30 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2020-10-14 21:10:52 +0200
commite1926e50606d11988ed99530ea073ffe15177137 (patch)
tree9af5807db306502236fb2c81439a7c57b8bcb636 /src
parent0e85647ccf45641f8243c44b93271e55984680f9 (diff)
QMetaType: fix warning message
Change-Id: I93c8b0d6b490cfed944a2a6a2b64361258a50141 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qmetatype.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qmetatype.h b/src/corelib/kernel/qmetatype.h
index 2f6303deb4..f25ad86255 100644
--- a/src/corelib/kernel/qmetatype.h
+++ b/src/corelib/kernel/qmetatype.h
@@ -763,7 +763,7 @@ namespace QtPrivate
static yes_type checkType(QObject* );
#endif
static no_type checkType(...);
- static_assert(sizeof(T), "Type argument of Q_DECLARE_METATYPE(T*) must be fully defined");
+ static_assert(sizeof(T), "Type argument of Q_PROPERTY or Q_DECLARE_METATYPE(T*) must be fully defined");
enum { Value = sizeof(checkType(static_cast<T*>(nullptr))) == sizeof(yes_type) };
};