diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-08-04 23:26:51 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-08-08 18:58:33 +0000 |
commit | 68a717a9cd5a5b092268eaddd3552becc55c74ab (patch) | |
tree | 0a58bb1e40d8f302cc0e690b795e34cd640e036c /src/qml/jsruntime/qv4context.cpp | |
parent | 8f6a865929da5dc130594dbcd5ace97468f51e59 (diff) |
Remove Scope dependency from registerQmlDependencies
An engine pointer is sufficient.
Change-Id: I6430cfeac3bd2881e89bbbd22ff31ffbd2a2339a
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4context.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4context.cpp b/src/qml/jsruntime/qv4context.cpp index db85bc6cef..da76da839b 100644 --- a/src/qml/jsruntime/qv4context.cpp +++ b/src/qml/jsruntime/qv4context.cpp @@ -244,7 +244,7 @@ ReturnedValue ExecutionContext::call(Scope &scope, CallData *callData, Function ReturnedValue res = Q_V4_PROFILE(scope.engine, function); if (function->hasQmlDependencies) - QQmlPropertyCapture::registerQmlDependencies(function->compiledFunction, scope); + QQmlPropertyCapture::registerQmlDependencies(scope.engine, function->compiledFunction); return res; } @@ -271,7 +271,7 @@ ReturnedValue QV4::ExecutionContext::simpleCall(Scope &scope, CallData *callData ReturnedValue res = Q_V4_PROFILE(scope.engine, function); if (function->hasQmlDependencies) - QQmlPropertyCapture::registerQmlDependencies(function->compiledFunction, scope); + QQmlPropertyCapture::registerQmlDependencies(scope.engine, function->compiledFunction); scope.engine->memoryManager->freeSimpleCallContext(); return res; |