Commit 480e8134 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

C++: Remove unused loop

Change-Id: I107c09bce86219476fab034b133b54f83170c17f
Reviewed-by: default avatarNikolai Kosjar <>
parent 3070fdd4
......@@ -403,7 +403,8 @@ FullySpecifiedType UseMinimalNames::apply(const Name *name, Rewrite *rewrite) co
Control *control = rewrite->control;
const QList<LookupItem> results = context.lookup(name, scope);
foreach (const LookupItem &r, results) {
if (!results.isEmpty()) {
const LookupItem &r = results.first();
if (Symbol *d = r.declaration())
return control->namedType(LookupContext::minimalName(d, _target, control));
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