Fix Cppcheck warning

This commit is contained in:
Daniel Marjamäki 2016-05-09 13:08:00 +02:00
parent 9c8922541e
commit 8a13b5cd83
1 changed files with 1 additions and 1 deletions

View File

@ -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;