diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-07-27 19:16:17 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-08-24 00:19:36 +0200 |
commit | 0161f00e5043090f22b23de9822c09062b17d675 (patch) | |
tree | e2a6d59028ada109a79c60d32186f9661eb5c67f /src/corelib/kernel/qobject_p.h | |
parent | 700e6341e51f5e6f45303fab3d0a84a3eb249eba (diff) |
Use QMetaType in QMetaCallEvent
And don't use int based type mapping anymore.
Change-Id: I456e76d1933ef646a7bd39ce565886b89e938a44
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qobject_p.h')
-rw-r--r-- | src/corelib/kernel/qobject_p.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/kernel/qobject_p.h b/src/corelib/kernel/qobject_p.h index 2a5104c3dd..4a60d37191 100644 --- a/src/corelib/kernel/qobject_p.h +++ b/src/corelib/kernel/qobject_p.h @@ -548,8 +548,8 @@ public: inline int id() const { return d.method_offset_ + d.method_relative_; } inline const void * const* args() const { return d.args_; } inline void ** args() { return d.args_; } - inline const int *types() const { return reinterpret_cast<int*>(d.args_ + d.nargs_); } - inline int *types() { return reinterpret_cast<int*>(d.args_ + d.nargs_); } + inline const QMetaType *types() const { return reinterpret_cast<QMetaType *>(d.args_ + d.nargs_); } + inline QMetaType *types() { return reinterpret_cast<QMetaType *>(d.args_ + d.nargs_); } virtual void placeMetaCall(QObject *object) override; @@ -565,7 +565,7 @@ private: ushort method_relative_; } d; // preallocate enough space for three arguments - char prealloc_[3*(sizeof(void*) + sizeof(int))]; + alignas(void *) char prealloc_[3*sizeof(void*) + 3*sizeof(QMetaType)]; }; class QBoolBlocker |