diff options
author | Oleg Shparber <trollixx@gmail.com> | 2014-12-31 10:42:15 -0800 |
---|---|---|
committer | Oleg Shparber <trollixx@gmail.com> | 2015-01-02 21:29:41 +0100 |
commit | 2fadffdc4630eca35d775d973a368feae2630bd9 (patch) | |
tree | b4af3d95e75655573cd2466d6807d3ae78feb47a /src/qml/types/qquickworkerscript.cpp | |
parent | 29c0102adb8b800f4947e4e7962ca414fe576866 (diff) |
Use QV4::ScopedFunctionObject typedef instead of actual type
Change-Id: I6b4effaa5bef992b4ae9402eea7fe655bc7b18f0
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/types/qquickworkerscript.cpp')
-rw-r--r-- | src/qml/types/qquickworkerscript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/types/qquickworkerscript.cpp b/src/qml/types/qquickworkerscript.cpp index 931da96c7d..7289a476c6 100644 --- a/src/qml/types/qquickworkerscript.cpp +++ b/src/qml/types/qquickworkerscript.cpp @@ -225,7 +225,7 @@ void QQuickWorkerScriptEnginePrivate::WorkerEngine::init() onmessage = QV4::Script(globalContext, QString::fromUtf8(CALL_ONMESSAGE_SCRIPT)).run(); // do not use QStringLiteral here, MSVC2012 cannot apply this cleanly to the macro Q_ASSERT(!scope.engine->hasException); QV4::Script createsendscript(globalContext, QString::fromUtf8(SEND_MESSAGE_CREATE_SCRIPT)); // do not use QStringLiteral here, MSVC2012 cannot apply this cleanly to the macro - QV4::Scoped<QV4::FunctionObject> createsendconstructor(scope, createsendscript.run()); + QV4::ScopedFunctionObject createsendconstructor(scope, createsendscript.run()); Q_ASSERT(!scope.engine->hasException); QV4::ScopedString name(scope, m_v4Engine->newString(QStringLiteral("sendMessage"))); QV4::ScopedValue function(scope, QV4::BuiltinFunction::create(globalContext, name, |