aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-12-02 10:18:34 +0100
committerUlf Hermann <ulf.hermann@qt.io>2020-12-02 13:06:27 +0100
commitd6fb8791ab8734455398ac556fd035dc08a1a0a6 (patch)
tree05fc627383415f4fed090f078201b3678c2453ec /src/qml/jsruntime
parent8a555cc22afb93dbe0e0da83f211c6e4f032bd09 (diff)
Let AOT-compiled functions modify their arguments
It allows for more natural looking generated code and there is no downside. The arguments are specially prepared for the call anyway. Change-Id: I8437e93adb1c67db1b53fbdb29cbea10f6ef278f Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsruntime')
-rw-r--r--src/qml/jsruntime/qv4vme_moth.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4vme_moth.cpp b/src/qml/jsruntime/qv4vme_moth.cpp
index 98a6d94ecc..4815f5ad91 100644
--- a/src/qml/jsruntime/qv4vme_moth.cpp
+++ b/src/qml/jsruntime/qv4vme_moth.cpp
@@ -491,7 +491,7 @@ ReturnedValue VME::exec(CppStackFrame *frame, ExecutionEngine *engine)
Scoped<QmlContext> qmlContext(scope, engine->qmlContext());
function->aotFunction->functionPtr(
qmlContext->qmlContext()->asQQmlContext(), qmlContext->qmlScope(),
- returnValue, const_cast<const void **>(argumentPtrs)); // We're adding const here
+ returnValue, argumentPtrs);
if (returnValue) {
result = engine->metaTypeToJS(returnType.id(), returnValue);