diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-10-20 15:14:41 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-11-07 09:00:26 +0000 |
commit | c6c79644dc869259482a011f8b737f709af02fb2 (patch) | |
tree | 6f3c3a721f7bbd1b1a76189b537faffc4de24c1a /src/qml/types | |
parent | 7287690a41ab762c0c4efe02632efeaf3e0187b4 (diff) |
Rename JSCall to JSCallData
As, this is going to change in a simple stack based structure
to keep pointers to the data to pass to calls.
Change-Id: Ia9aa3f81ee3eeba36affd16aac7b2fe97d59aea9
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/types')
-rw-r--r-- | src/qml/types/qquickworkerscript.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/types/qquickworkerscript.cpp b/src/qml/types/qquickworkerscript.cpp index c0f49c3885..8cabf062df 100644 --- a/src/qml/types/qquickworkerscript.cpp +++ b/src/qml/types/qquickworkerscript.cpp @@ -248,7 +248,7 @@ void QQuickWorkerScriptEnginePrivate::WorkerEngine::init() QV4::ScopedString name(scope, m_v4Engine->newString(QStringLiteral("sendMessage"))); QV4::ScopedValue function(scope, QV4::BuiltinFunction::create(globalContext, name, QQuickWorkerScriptEnginePrivate::method_sendMessage)); - QV4::JSCall jsCall(scope, createsendconstructor, 1); + QV4::JSCallData jsCall(scope, createsendconstructor, 1); jsCall->args[0] = function; jsCall->thisObject = global(); createsend.set(scope.engine, jsCall.call()); @@ -265,7 +265,7 @@ QV4::ReturnedValue QQuickWorkerScriptEnginePrivate::WorkerEngine::sendFunction(i QV4::ScopedFunctionObject f(scope, createsend.value()); QV4::ScopedValue v(scope); - QV4::JSCall jsCall(scope, f, 1); + QV4::JSCallData jsCall(scope, f, 1); jsCall->args[0] = QV4::Primitive::fromInt32(id); jsCall->thisObject = global(); v = jsCall.call(); @@ -366,7 +366,7 @@ void QQuickWorkerScriptEnginePrivate::processMessage(int id, const QByteArray &d QV4::Scoped<QV4::QmlContext> qmlContext(scope, script->qmlContext.value()); Q_ASSERT(!!qmlContext); - QV4::JSCall jsCall(scope, f, 2); + QV4::JSCallData jsCall(scope, f, 2); jsCall->thisObject = workerEngine->global(); jsCall->args[0] = qmlContext->d()->qml(); // ### jsCall->args[1] = value; |