aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/types/qquickworkerscript.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-06-22 10:02:06 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-06-22 22:28:33 +0200
commit1e437db3e241ec7e3c0dc290193397409db0588e (patch)
treea73c5e6e63fb1f7f7824db11810d1cdb97751f8e /src/qml/types/qquickworkerscript.cpp
parent7c7581f1d03668df7b77e0076d128fd6a122d96b (diff)
Remove the context argument from Managed::call
Change-Id: I0895f9a94af47c8aab1dc93579921737e9516f7d Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/types/qquickworkerscript.cpp')
-rw-r--r--src/qml/types/qquickworkerscript.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/types/qquickworkerscript.cpp b/src/qml/types/qquickworkerscript.cpp
index 35d504a8a2..e1ab6e64e4 100644
--- a/src/qml/types/qquickworkerscript.cpp
+++ b/src/qml/types/qquickworkerscript.cpp
@@ -246,7 +246,7 @@ QV4::Value QQuickWorkerScriptEnginePrivate::WorkerEngine::sendFunction(int id)
QV4::Value v = QV4::Value::undefinedValue();
QV4::ExecutionContext *ctx = f->internalClass->engine->current;
try {
- v = f->call(ctx, global(), args, 1);
+ v = f->call(global(), args, 1);
} catch (QV4::Exception &e) {
e.accept(ctx);
v = e.value();
@@ -348,7 +348,7 @@ void QQuickWorkerScriptEnginePrivate::processMessage(int id, const QByteArray &d
QV4::FunctionObject *f = workerEngine->onmessage.value().asFunctionObject();
QV4::ExecutionContext *ctx = f->internalClass->engine->current;
try {
- workerEngine->onmessage.value().asFunctionObject()->call(f->internalClass->engine->current, workerEngine->global(), args, 2);
+ workerEngine->onmessage.value().asFunctionObject()->call(workerEngine->global(), args, 2);
} catch (QV4::Exception &e) {
e.accept(ctx);
QQmlError error;