minor refactorings in SymbolDatabase
This commit is contained in:
parent
a61f9abbb7
commit
f021094f75
|
@ -3074,10 +3074,9 @@ static const Type* findVariableTypeIncludingUsedNamespaces(const SymbolDatabase*
|
|||
|
||||
// look for variable type in any using namespace in this scope or above
|
||||
while (scope) {
|
||||
for (std::list<Scope::UsingInfo>::const_iterator ui = scope->usingList.begin();
|
||||
ui != scope->usingList.end(); ++ui) {
|
||||
if (ui->scope) {
|
||||
argType = symbolDatabase->findVariableType(ui->scope, typeTok);
|
||||
for (const Scope::UsingInfo &ui : scope->usingList) {
|
||||
if (ui.scope) {
|
||||
argType = symbolDatabase->findVariableType(ui.scope, typeTok);
|
||||
if (argType)
|
||||
return argType;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue