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/jsruntime/qv4engine_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/jsruntime/qv4engine_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4engine_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h index fe31b42c84..db6bfcc84b 100644 --- a/src/qml/jsruntime/qv4engine_p.h +++ b/src/qml/jsruntime/qv4engine_p.h @@ -774,8 +774,8 @@ public: bool diskCacheEnabled() const; - ReturnedValue callInContext(Function *function, QObject *self, - QQmlRefPointer<QQmlContextData> ctxtdata, int argc, void **args, QMetaType *types); + void callInContext(Function *function, QObject *self, QQmlRefPointer<QQmlContextData> ctxtdata, + int argc, void **args, QMetaType *types); private: QV4::ReturnedValue fromData( |