Fixes: Possible crash while resolving qualified name ids.

There is no need to "expand" again the scope we get from invoking `resolve'.
This commit is contained in:
Roberto Raggi
2009-02-18 15:55:21 +01:00
parent f5b32ef7b0
commit c72c84d837

View File

@@ -180,7 +180,7 @@ QList<Symbol *> LookupContext::resolve(Name *name, const QList<Scope *> &visible
scopes.clear(); scopes.clear();
foreach (Symbol *candidate, candidates) { foreach (Symbol *candidate, candidates) {
if (ScopedSymbol *scoped = candidate->asScopedSymbol()) { if (ScopedSymbol *scoped = candidate->asScopedSymbol()) {
expand(scoped->members(), visibleScopes, &scopes); scopes.append(scoped->members());
} }
} }
} }