diff options
author | Andrei Golubev <andrei.golubev@qt.io> | 2021-05-03 11:04:39 +0200 |
---|---|---|
committer | Andrei Golubev <andrei.golubev@qt.io> | 2021-05-11 08:48:11 +0200 |
commit | 2f9b62ea5961550e8d65897932a792da8b232a9c (patch) | |
tree | 0fb4642f532e99423953deaed65d9cd3d337116f /src/qml/qml/qqmlengine_p.h | |
parent | 0d5c2768808a5c0b77df9e0e4763cf7348b47b5f (diff) |
QQmlEngine::executeRuntimeFunction: pass return value as input argument
Use the newer version of QV4::Function::call() that does not require
manual JSCallData setup and is more optimal for AOT function calls
Change-Id: I5a5e2d0477c0603b05b7213f1b2adcc34d156bf5
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlengine_p.h b/src/qml/qml/qqmlengine_p.h index 04ed50b2ee..499f9dd492 100644 --- a/src/qml/qml/qqmlengine_p.h +++ b/src/qml/qml/qqmlengine_p.h @@ -295,8 +295,8 @@ public: return nullptr; } - QJSValue executeRuntimeFunction(const QUrl &url, qsizetype functionIndex, QObject *thisObject, - int arcg=0, void **args = nullptr, QMetaType *types = nullptr); + void executeRuntimeFunction(const QUrl &url, qsizetype functionIndex, QObject *thisObject, + int argc = 0, void **args = nullptr, QMetaType *types = nullptr); private: class SingletonInstances : private QHash<QQmlType, QJSValue> |