QMetaType: fix warning message

Change-Id: I93c8b0d6b490cfed944a2a6a2b64361258a50141
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
bb10
Fabian Kosmale 2020-10-13 14:13:30 +02:00
parent 0e85647ccf
commit e1926e5060
1 changed files with 1 additions and 1 deletions

View File

@ -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) };
};