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>
This commit is contained in:
parent
180decaf11
commit
798b3e6fa6
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue