aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4script.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-10-20 16:54:10 +0200
committerLars Knoll <lars.knoll@qt.io>2017-11-07 09:00:44 +0000
commitbc5ff76e5afe6356bebb344c9a5d8b304e852f3c (patch)
tree436e4cfdcad3ec2e882c300c85395fdeee3a4d48 /src/qml/jsruntime/qv4script.cpp
parent9b25000cb41b97c9c9f49a542c9b82cf25c032db (diff)
Simplify JSCallData construction
Change-Id: Ic53532edae9a209aa7125af6f00a9d993d74f1a3 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
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());