aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4include.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4include.cpp')
-rw-r--r--src/qml/jsruntime/qv4include.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4include.cpp b/src/qml/jsruntime/qv4include.cpp
index 4fd7bb14c7..9068d573f6 100644
--- a/src/qml/jsruntime/qv4include.cpp
+++ b/src/qml/jsruntime/qv4include.cpp
@@ -102,10 +102,12 @@ void QV4Include::callback(const QV4::Value &callback, const QV4::Value &status)
if (!f)
return;
- QV4::Value args[] = { status };
QV4::ExecutionContext *ctx = f->engine()->current;
try {
- f->call(QV4::Value::fromObject(f->engine()->globalObject), args, 1);
+ CALLDATA(1);
+ d.thisObject = QV4::Value::fromObject(f->engine()->globalObject);
+ d.args[0] = status;
+ f->call(d);
} catch (QV4::Exception &e) {
e.accept(ctx);
}