Commit 03402a07 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Changed canonical symbol discovery to return the first one.

parent 13ff3e29
......@@ -320,7 +320,7 @@ struct FindCanonicalSymbol
Scope *scope = info.doc->scopeAt(line, col);
const QList<LookupItem> results = typeOfExpression(code, scope, TypeOfExpression::Preprocess);
for (int i = results.size() - 1; i != -1; --i) { // ### TODO virtual methods and classes.
for (int i = 0; i < results.size(); ++i) { // ### TODO virtual methods and classes.
const LookupItem &r = results.at(i);
if (r.declaration())
......
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