Fixes: Possible crash while resolving qualified name ids.

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

View File

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