aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlengine_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/qml/qqmlengine_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/qml/qqmlengine_p.h')
-rw-r--r--src/qml/qml/qqmlengine_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlengine_p.h b/src/qml/qml/qqmlengine_p.h
index 4f1c5f26dd..df78149b0b 100644
--- a/src/qml/qml/qqmlengine_p.h
+++ b/src/qml/qml/qqmlengine_p.h
@@ -301,7 +301,7 @@ public:
}
QJSValue executeRuntimeFunction(const QUrl &url, qsizetype functionIndex, QObject *thisObject,
- void **args = nullptr, int *types = nullptr);
+ int arcg=0, void **args = nullptr, QMetaType *types = nullptr);
private:
class SingletonInstances : private QHash<QQmlType, QJSValue>