From a59d9a7eacea3614462eb910e03351cbb9d34b75 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Fri, 20 Oct 2017 16:00:56 +0200 Subject: Get rid of JSCallData::call() Change-Id: I6b99e9a7102b3dcb6a7699f54b6456eba6248699 Reviewed-by: Erik Verbruggen --- src/qml/qml/qqmldelayedcallqueue.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/qml/qml/qqmldelayedcallqueue.cpp') diff --git a/src/qml/qml/qqmldelayedcallqueue.cpp b/src/qml/qml/qqmldelayedcallqueue.cpp index e8e13ee352..9d570f18b0 100644 --- a/src/qml/qml/qqmldelayedcallqueue.cpp +++ b/src/qml/qml/qqmldelayedcallqueue.cpp @@ -67,14 +67,14 @@ void QQmlDelayedCallQueue::DelayedFunctionCall::execute(QV4::ExecutionEngine *en const QV4::FunctionObject *callback = m_function.as(); Q_ASSERT(callback); const int argCount = array ? array->getLength() : 0; - QV4::JSCallData jsCall(scope, callback, argCount); - jsCall->thisObject = QV4::Encode::undefined(); + QV4::JSCallData jsCallData(scope, callback, argCount); + jsCallData->thisObject = QV4::Encode::undefined(); for (int i = 0; i < argCount; i++) { - jsCall->args[i] = array->getIndexed(i); + jsCallData->args[i] = array->getIndexed(i); } - jsCall.call(); + callback->call(jsCallData); if (scope.engine->hasException) { QQmlError error = scope.engine->catchExceptionAsQmlError(); -- cgit v1.2.3