Fix Cppcheck warning
This commit is contained in:
parent
9c8922541e
commit
8a13b5cd83
|
@ -3396,7 +3396,7 @@ const Enumerator * SymbolDatabase::findEnumerator(const Token * tok) const
|
|||
}
|
||||
|
||||
while (scope && scope->nestedIn) {
|
||||
if (scope && scope->type == Scope::eFunction && scope->functionOf)
|
||||
if (scope->type == Scope::eFunction && scope->functionOf)
|
||||
scope = scope->functionOf;
|
||||
else
|
||||
scope = scope->nestedIn;
|
||||
|
|
Loading…
Reference in New Issue