aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/types/qquickworkerscript.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-05-07 09:54:05 +0200
committerLars Knoll <lars.knoll@digia.com>2013-05-07 12:25:38 +0200
commit1abed74e211585ef9d8aab46ab924a212860c5fe (patch)
tree7c93d691dab64ff6cedf8f8b073878f5e78dcbdd /src/qml/types/qquickworkerscript.cpp
parente855f1387badcbf88954b8707c1dc418cc66c215 (diff)
Replace v8::Undefined() with QV4::Value::undefinedValue()
Change-Id: I4c7bb5bcc1bc15a982bb83d2597e6ae4bc5710cd Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/types/qquickworkerscript.cpp')
-rw-r--r--src/qml/types/qquickworkerscript.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/types/qquickworkerscript.cpp b/src/qml/types/qquickworkerscript.cpp
index e6c0e7d349..3eb1461d5c 100644
--- a/src/qml/types/qquickworkerscript.cpp
+++ b/src/qml/types/qquickworkerscript.cpp
@@ -283,12 +283,12 @@ v8::Handle<v8::Value> QQuickWorkerScriptEnginePrivate::sendMessage(const v8::Arg
QMutexLocker locker(&engine->p->m_lock);
WorkerScript *script = engine->p->workers.value(id);
if (!script)
- return v8::Undefined();
+ return QV4::Value::undefinedValue();
if (script->owner)
QCoreApplication::postEvent(script->owner, new WorkerDataEvent(0, data));
- return v8::Undefined();
+ return QV4::Value::undefinedValue();
}
// Requires handle scope and context scope
@@ -657,7 +657,7 @@ void QQuickWorkerScript::sendMessage(QQmlV8Function *args)
return;
}
- v8::Handle<v8::Value> argument = v8::Undefined();
+ v8::Handle<v8::Value> argument = QV4::Value::undefinedValue();
if (args->Length() != 0)
argument = (*args)[0];