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
committed by con
parent d3bc2aabe2
commit 58736bb56a

View File

@@ -176,7 +176,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());
} }
} }
} }