forked from qt-creator/qt-creator
Braces cleanup
Change-Id: I8413252c90a1487d291f15d92837c30ab697b245 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -242,11 +242,10 @@ int LineForNewIncludeDirective::operator()(const QString &newIncludeFileName,
|
||||
if (group.commonIncludeDir() == IncludeGroup::includeDir(pureIncludeFileName))
|
||||
localBestIncludeGroup = group;
|
||||
}
|
||||
if (!localBestIncludeGroup.isEmpty()) {
|
||||
if (!localBestIncludeGroup.isEmpty())
|
||||
bestGroup = localBestIncludeGroup;
|
||||
} else {
|
||||
else
|
||||
bestGroup = groupsMixedIncludeDirs.last();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -141,9 +141,8 @@ bool SearchSymbols::visit(Class *symbol)
|
||||
QString name = symbolName(symbol);
|
||||
QString scopedName = scopedSymbolName(name);
|
||||
QString previousScope = switchScope(scopedName);
|
||||
if (symbolsToSearchFor & SymbolSearcher::Classes) {
|
||||
if (symbolsToSearchFor & SymbolSearcher::Classes)
|
||||
appendItem(name, QString(), previousScope, ModelItemInfo::Class, symbol);
|
||||
}
|
||||
for (unsigned i = 0; i < symbol->memberCount(); ++i) {
|
||||
accept(symbol->memberAt(i));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user