diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-09-11 14:47:34 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-18 13:13:23 +0200 |
commit | d6837e9ca301e7b6c792e3d24db14fb7bab2db60 (patch) | |
tree | b0afdc2e224d8f28ec6f9fb516d0ad2cb63c4908 /src/qml/types | |
parent | 002e6105f61269f1474de878ccdb26205e5b226e (diff) |
Rename QV4::ValueScope to QV4::Scope
The class is going to be used all over the place, so let's
give it a short name :)
Change-Id: If61543cb2c885e7fbb95c8fc4d0e870097c352ed
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
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 481bc110e8..6a7374c09e 100644 --- a/src/qml/types/qquickworkerscript.cpp +++ b/src/qml/types/qquickworkerscript.cpp @@ -228,7 +228,7 @@ void QQuickWorkerScriptEnginePrivate::WorkerEngine::init() "}); "\ "})" - QV4::ValueScope scope(m_v4Engine); + QV4::Scope scope(m_v4Engine); onmessage = QV4::Script(m_v4Engine->rootContext, CALL_ONMESSAGE_SCRIPT).run(); QV4::Script createsendscript(m_v4Engine->rootContext, SEND_MESSAGE_CREATE_SCRIPT); QV4::FunctionObject *createsendconstructor = createsendscript.run().asFunctionObject(); @@ -246,7 +246,7 @@ QV4::Value QQuickWorkerScriptEnginePrivate::WorkerEngine::sendFunction(int id) { QV4::FunctionObject *f = createsend.value().asFunctionObject(); QV4::ExecutionContext *ctx = f->engine()->current; - QV4::ValueScope scope(ctx->engine); + QV4::Scope scope(ctx->engine); QV4::ScopedValue v(scope); try { @@ -351,7 +351,7 @@ void QQuickWorkerScriptEnginePrivate::processMessage(int id, const QByteArray &d QV4::FunctionObject *f = workerEngine->onmessage.value().asFunctionObject(); QV4::ExecutionContext *ctx = f->internalClass->engine->current; - QV4::ValueScope scope(ctx); + QV4::Scope scope(ctx); QV4::ScopedValue value(scope, QV4::Serialize::deserialize(data, workerEngine)); |