aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4engine_p.h
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-02-19 16:50:38 +0100
committerFabian Kosmale <fabian.kosmale@qt.io>2021-03-04 18:18:19 +0100
commitfe38b5c906de656c3e1a9491e9382e002d886f11 (patch)
treec888f839749e9b49db3d43ea742b40cb377963b0 /src/qml/jsruntime/qv4engine_p.h
parent86e9e61cadd0f5bcdbd466eb21dfc363a1fedb6d (diff)
Engine: Cleanup method argument passing
Instead of arguments around as a pointer to [argc, metaTypeId1, metaTypeId12, ...] pass argc and a pointer to [QMetaType1, QMetaType2] around. Moreover, make use of the fact that we now carry the metatype instead of only the id in a few places, to avoid id -> metatype lookups. Task-number: QTBUG-82931 Change-Id: Ib00e4d793727f85f3358a8162d1aac972daab3d3 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4engine_p.h')
-rw-r--r--src/qml/jsruntime/qv4engine_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h
index d91f7bf4a3..6c3d2d4436 100644
--- a/src/qml/jsruntime/qv4engine_p.h
+++ b/src/qml/jsruntime/qv4engine_p.h
@@ -744,7 +744,7 @@ public:
bool diskCacheEnabled() const;
ReturnedValue callInContext(Function *function, QObject *self,
- QQmlRefPointer<QQmlContextData> ctxtdata, void **args, int *types);
+ QQmlRefPointer<QQmlContextData> ctxtdata, int argc, void **args, QMetaType *types);
private:
#if QT_CONFIG(qml_debug)