diff options
author | Lars Knoll <[email protected]> | 2016-12-12 12:34:56 +0100 |
---|---|---|
committer | Lars Knoll <[email protected]> | 2016-12-13 08:28:00 +0000 |
commit | 798b3e6fa65f0a35e22c446ea8582803f6ecf4d2 (patch) | |
tree | f52225a830a79c82596d5d9ba365b5d0142885ae /src/qml/jsruntime/qv4context.cpp | |
parent | 180decaf11ea6fb1147825a78a95c455400f7c7e (diff) |
Minor optimization
Use the pre-computed hasQmlDependencies boolean in
QV4::Function instead of checking three integers.
Change-Id: Ib7194ccf9e9eb58b0d3c692388adc0cfa4cd3891
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4context.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4context.cpp b/src/qml/jsruntime/qv4context.cpp index df0ecdd5d3..544d39339b 100644 --- a/src/qml/jsruntime/qv4context.cpp +++ b/src/qml/jsruntime/qv4context.cpp @@ -343,7 +343,7 @@ void QV4::ExecutionContext::simpleCall(Scope &scope, CallData *callData, Functio scope.result = Q_V4_PROFILE(scope.engine, function); - if (function->compiledFunction->hasQmlDependencies()) + if (function->hasQmlDependencies) QQmlPropertyCapture::registerQmlDependencies(function->compiledFunction, scope); } |