Merge pull request #165 from stefanbeller/stack

symboldatabase: Remove unneeded check
This commit is contained in:
Daniel Marjamäki 2013-08-21 07:30:12 -07:00
commit 2995b5c3d7
1 changed files with 1 additions and 1 deletions

View File

@ -1298,7 +1298,7 @@ void SymbolDatabase::addClassFunction(Scope **scope, const Token **tok, const To
bool match = false;
if (scope1->className == tok1->str() && (scope1->type != Scope::eFunction)) {
// do the scopes match (same scope) or do their names match (multiple namespaces)
if ((*scope == scope1->nestedIn) || (*scope && scope1 &&
if ((*scope == scope1->nestedIn) || (*scope) &&
(*scope)->className == scope1->nestedIn->className &&
!(*scope)->className.empty() &&
(*scope)->type == scope1->nestedIn->type)) {