From 2d5862014096b2f1adfb1c1fa8357d01abbf8631 Mon Sep 17 00:00:00 2001 From: Hou Lei Date: Tue, 22 Dec 2020 21:21:11 +0800 Subject: Adjust the format of code blocks Change-Id: Id4a98b8b6f66ea4ea18eb90b86c1b84b6342e825 Reviewed-by: Hou Lei Reviewed-by: Volker Hilsheimer --- qmake/property.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qmake/property.cpp b/qmake/property.cpp index 971607ef61..2dc41ece0e 100644 --- a/qmake/property.cpp +++ b/qmake/property.cpp @@ -103,7 +103,7 @@ QMakeProperty::~QMakeProperty() void QMakeProperty::initSettings() { - if(!settings) { + if (!settings) { settings = new QSettings(QSettings::UserScope, "QtProject", "QMake"); settings->setFallbacksEnabled(false); } @@ -144,8 +144,8 @@ bool QMakeProperty::exec() { bool ret = true; - if(Option::qmake_mode == Option::QMAKE_QUERY_PROPERTY) { - if(Option::prop::properties.isEmpty()) { + if (Option::qmake_mode == Option::QMAKE_QUERY_PROPERTY) { + if (Option::prop::properties.isEmpty()) { initSettings(); const auto keys = settings->childKeys(); for (const QString &key : keys) { @@ -179,7 +179,7 @@ QMakeProperty::exec() } for (QStringList::ConstIterator it = Option::prop::properties.cbegin(); it != Option::prop::properties.cend(); it++) { - if(Option::prop::properties.count() > 1) + if (Option::prop::properties.count() > 1) fprintf(stdout, "%s:", (*it).toLatin1().constData()); const ProKey pkey(*it); if (!hasValue(pkey)) { -- cgit v1.2.1