Skip to content
Snippets Groups Projects
Commit c72c84d8 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Fixes: Possible crash while resolving qualified name ids.

There is no need to "expand" again the scope we get from invoking `resolve'.
parent f5b32ef7
No related branches found
No related tags found
No related merge requests found
......@@ -180,7 +180,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());
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment