From 244cc6eec931f0b46e3d2b8ea32f03b32cb1023e Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 11 Feb 2016 18:24:18 +0100 Subject: Templates: follow the Qt coding style Return early to keep the indentation low. This style was already used in many areas, so now the same style is consistently used everywhere. Change-Id: Ibc7c05147fdcf226ad1cbdd26cd70e1da89108af Reviewed-by: Liang Qi Reviewed-by: Mitch Curtis --- src/templates/qquickbusyindicator.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/templates/qquickbusyindicator.cpp') diff --git a/src/templates/qquickbusyindicator.cpp b/src/templates/qquickbusyindicator.cpp index d4e07d44..3cfd96cb 100644 --- a/src/templates/qquickbusyindicator.cpp +++ b/src/templates/qquickbusyindicator.cpp @@ -98,10 +98,11 @@ bool QQuickBusyIndicator::isRunning() const void QQuickBusyIndicator::setRunning(bool running) { Q_D(QQuickBusyIndicator); - if (d->running != running) { - d->running = running; - emit runningChanged(); - } + if (d->running == running) + return; + + d->running = running; + emit runningChanged(); } #ifndef QT_NO_ACCESSIBILITY -- cgit v1.2.3