diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2024-04-19 11:19:01 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2024-04-24 16:49:06 +0200 |
commit | b7f4779ccbf39f063ff38f72aecaeaa8b58bc759 (patch) | |
tree | 550d7c1d10edec33a31876bc414690f926fbca02 /src/qml/qml | |
parent | 5fdd8793c2adc7c2c93f5d02ef33044dc784afa4 (diff) |
QmlCompiler: Perform return value assignment inside generated code
This is in preparation for using exact types and actually enforcing
them. We shouldn't wrap the return value into a QVariant in order to
then painstakingly unwrap it again. The generated code can already do
the right thing.
Task-number: QTBUG-119885
Change-Id: I13e517967ee982be717024a9abb74d5e02a185d6
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml')
-rw-r--r-- | src/qml/qml/qqmlprivate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlprivate.h b/src/qml/qml/qqmlprivate.h index f5e1feb4f2..25dc36d33d 100644 --- a/src/qml/qml/qqmlprivate.h +++ b/src/qml/qml/qqmlprivate.h @@ -743,7 +743,7 @@ namespace QQmlPrivate qintptr extraData; QMetaType returnType; QList<QMetaType> argumentTypes; - void (*functionPtr)(const AOTCompiledContext *context, void *resultPtr, void **arguments); + void (*functionPtr)(const AOTCompiledContext *context, void **argv); }; #if QT_DEPRECATED_SINCE(6, 6) |