diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-12-05 15:20:58 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-01-15 08:49:55 +0000 |
commit | b2be122a787d8b2c5a527b87010573422c7403cf (patch) | |
tree | 43ed247d897775baf44f5cbb70faf61eceabe4a1 /src/qml/types | |
parent | f3e02573c99e4c36f6ddb100bcc1b7db0070b7f0 (diff) |
Get rid of BuiltinFunction
It's now unused.
Change-Id: Id2941c212d488c9b0933fa06aac9922b9db13a05
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/types')
-rw-r--r-- | src/qml/types/qquickworkerscript.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/types/qquickworkerscript.cpp b/src/qml/types/qquickworkerscript.cpp index 43ba21afad..d90b0ab490 100644 --- a/src/qml/types/qquickworkerscript.cpp +++ b/src/qml/types/qquickworkerscript.cpp @@ -246,8 +246,8 @@ void QQuickWorkerScriptEnginePrivate::WorkerEngine::init() 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, - QQuickWorkerScriptEnginePrivate::method_sendMessage)); + QV4::ScopedValue function(scope, QV4::FunctionObject::createBuiltinFunction(globalContext, name, + QQuickWorkerScriptEnginePrivate::method_sendMessage)); QV4::JSCallData jsCallData(scope, 1); jsCallData->args[0] = function; *jsCallData->thisObject = global(); |