Commit d9eab81c authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

C++: Avoid duplicate entries in TypeResolver

Change-Id: I094dc04a14c05b17815d53bf0170926cc0c0d2a5
Reviewed-by: default avatarPrzemyslaw Gorszkowski <>
parent 5e0f0268
......@@ -79,8 +79,10 @@ QList<LookupItem> TypeResolver::getNamedTypeItems(const Name *name, Scope *scope
if (namedTypeItems.isEmpty()) {
if (binding)
namedTypeItems = binding->lookup(name);
if (LookupScope *scopeCon = _context.lookupType(scope))
namedTypeItems += scopeCon->lookup(name);
if (LookupScope *scopeCon = _context.lookupType(scope)) {
if (scopeCon != binding)
namedTypeItems += scopeCon->lookup(name);
return namedTypeItems;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment