Commit b7f3d924 authored by Roberto Raggi's avatar Roberto Raggi

Remove duplicates from the working list.

parent 65e13b70
......@@ -122,9 +122,11 @@ bool FindUsages::checkCandidates(const QList<Symbol *> &candidates) const
if (Symbol *canonicalSymbol = LookupContext::canonicalSymbol(candidates, _globalNamespaceBinding.data())) {
#if 0
Symbol *c = candidates.first();
qDebug() << "*** canonical symbol:" << canonicalSymbol->fileName()
<< canonicalSymbol->line() << canonicalSymbol->column()
<< "candidates:" << candidates.size();
<< "candidates:" << candidates.size()
<< c->fileName() << c->line() << c->column();
#endif
return checkSymbol(canonicalSymbol);
......
......@@ -127,6 +127,8 @@ static void find_helper(QFutureInterface<Usage> &future,
files += snapshot.dependsOn(sourceFile);
}
files.removeDuplicates();
//qDebug() << "done in:" << tm.elapsed() << "number of files to parse:" << files.size();
future.setProgressRange(0, files.size());
......
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