From 798b3e6fa65f0a35e22c446ea8582803f6ecf4d2 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 12 Dec 2016 12:34:56 +0100 Subject: Minor optimization Use the pre-computed hasQmlDependencies boolean in QV4::Function instead of checking three integers. Change-Id: Ib7194ccf9e9eb58b0d3c692388adc0cfa4cd3891 Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3