aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2016-12-12 12:34:56 +0100
committerLars Knoll <lars.knoll@qt.io>2016-12-13 08:28:00 +0000
commit798b3e6fa65f0a35e22c446ea8582803f6ecf4d2 (patch)
treef52225a830a79c82596d5d9ba365b5d0142885ae /src
parent180decaf11ea6fb1147825a78a95c455400f7c7e (diff)
Minor optimization
Use the pre-computed hasQmlDependencies boolean in QV4::Function instead of checking three integers. Change-Id: Ib7194ccf9e9eb58b0d3c692388adc0cfa4cd3891 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/qml/jsruntime/qv4context.cpp2
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);
}