forked from qt-creator/qt-creator
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:
@@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user