forked from qt-creator/qt-creator
Add whitespace after control keywords
find -name \*.cpp -o -name \*.h | \ xargs sed -Ei 's/ (for|foreach|if|switch|while)\(/ \1 (/g' Change-Id: I9efdff4bf0c8c01a52baaaeb75198483c77b0390 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
3747e941ad
commit
a44aa55502
@@ -106,7 +106,7 @@ bool OptionsParser::checkForTestOption()
|
||||
return false;
|
||||
if (nextToken(RequiredToken)) {
|
||||
if (m_currentArg == QLatin1String("all")) {
|
||||
foreach(PluginSpec *spec, m_pmPrivate->pluginSpecs) {
|
||||
foreach (PluginSpec *spec, m_pmPrivate->pluginSpecs) {
|
||||
if (spec && !m_pmPrivate->testSpecs.contains(spec))
|
||||
m_pmPrivate->testSpecs.append(spec);
|
||||
}
|
||||
@@ -117,7 +117,7 @@ bool OptionsParser::checkForTestOption()
|
||||
*m_errorString = QCoreApplication::translate("PluginManager",
|
||||
"The plugin '%1' does not exist.").arg(m_currentArg);
|
||||
m_hasError = true;
|
||||
} else if(!m_pmPrivate->testSpecs.contains(spec)) {
|
||||
} else if (!m_pmPrivate->testSpecs.contains(spec)) {
|
||||
m_pmPrivate->testSpecs.append(spec);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user