aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4script.cpp')
-rw-r--r--src/qml/jsruntime/qv4script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4script.cpp b/src/qml/jsruntime/qv4script.cpp
index c0a00032dd..8ca4985b32 100644
--- a/src/qml/jsruntime/qv4script.cpp
+++ b/src/qml/jsruntime/qv4script.cpp
@@ -152,13 +152,13 @@ ReturnedValue Script::run()
ContextStateSaver stateSaver(valueScope, context);
context->d()->v4Function = vmFunction;
- QV4::JSCallData jsCall(valueScope, nullptr);
+ QV4::JSCallData jsCall(valueScope);
jsCall->thisObject = engine->globalObject;
jsCall->context = *context;
return vmFunction->call(jsCall.callData());
} else {
Scoped<QmlContext> qml(valueScope, qmlContext.value());
- JSCallData jsCall(valueScope, nullptr);
+ JSCallData jsCall(valueScope);
jsCall->thisObject = Primitive::undefinedValue();
jsCall->context = *qml;
return vmFunction->call(jsCall.callData());