diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index e72b86ea5..f5b5fa1dd 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -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;