diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2022-07-16 08:45:31 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2022-07-27 14:51:50 -0700 |
commit | 3695b35dfc427f274e55f8e2a6a9876deb52f1b4 (patch) | |
tree | 2830ca8dbbf73c1111465fb5bd1b4535af669d86 /src/corelib/kernel/qbasictimer.h | |
parent | 2d0c31e7d92a3e9df4ce2b9c1d41b94fb12735fc (diff) |
QMetaType: re-fix them for pointers
Instead of placing the error deep into IsPointerToTypeDerivedFromQObject
with a message about weird the sizes, move them closer to the front-end
so we get a proper error message like:
<stdin>:1:56: required from here
qmetatype.h:1131:45: error: static assertion failed: Meta Types must be fully defined
<stdin>:1:50: required from here
qmetatype.h:1132:29: error: static assertion failed: Meta Types cannot be non-const references or rvalue references.
<stdin>:1:56: required from here
qmetatype.h:1136:55: error: static assertion failed: Pointer Meta Types must either point to fully-defined types or be declared with Q_DECLARE_OPAQUE_POINTER(T *)
This does not apply to the meta type list stored in a meta object, as
meta method parameters may be opaque pointers or even forward-declared
only.
Change-Id: I36b24183fbd041179f2ffffd17025f10f38e04e6
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/kernel/qbasictimer.h')
0 files changed, 0 insertions, 0 deletions