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) {
|
while (scope && scope->nestedIn) {
|
||||||
if (scope && scope->type == Scope::eFunction && scope->functionOf)
|
if (scope->type == Scope::eFunction && scope->functionOf)
|
||||||
scope = scope->functionOf;
|
scope = scope->functionOf;
|
||||||
else
|
else
|
||||||
scope = scope->nestedIn;
|
scope = scope->nestedIn;
|
||||||
|
|
Loading…
Reference in New Issue