From 9b25000cb41b97c9c9f49a542c9b82cf25c032db Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Fri, 20 Oct 2017 16:11:37 +0200 Subject: Get rid of the implicit cast operator to a CallData Change-Id: I1c35fbf8f7355bc2393ae931f99e591b800f2f45 Reviewed-by: Erik Verbruggen --- src/qml/jsruntime/qv4script.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qml/jsruntime/qv4script.cpp') diff --git a/src/qml/jsruntime/qv4script.cpp b/src/qml/jsruntime/qv4script.cpp index 917145c4d2..c0a00032dd 100644 --- a/src/qml/jsruntime/qv4script.cpp +++ b/src/qml/jsruntime/qv4script.cpp @@ -155,13 +155,13 @@ ReturnedValue Script::run() QV4::JSCallData jsCall(valueScope, nullptr); jsCall->thisObject = engine->globalObject; jsCall->context = *context; - return vmFunction->call(jsCall); + return vmFunction->call(jsCall.callData()); } else { Scoped qml(valueScope, qmlContext.value()); JSCallData jsCall(valueScope, nullptr); jsCall->thisObject = Primitive::undefinedValue(); jsCall->context = *qml; - return vmFunction->call(jsCall); + return vmFunction->call(jsCall.callData()); } } -- cgit v1.2.3