forked from qt-creator/qt-creator
C++: Remove unused loop
Change-Id: I107c09bce86219476fab034b133b54f83170c17f Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
3070fdd4f1
commit
480e8134e9
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user