Commit 48c2bc1e authored by Eike Ziller's avatar Eike Ziller

Locator: Fix local variable name

Change-Id: I3803fbd6d99a4b2d113997f56ab8f05e5c169937
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent 812c1034
......@@ -45,19 +45,19 @@ uint qHash(const Core::LocatorFilterEntry &entry)
} // namespace Core
void Core::Internal::runSearch(QFutureInterface<Core::LocatorFilterEntry> &entries,
void Core::Internal::runSearch(QFutureInterface<Core::LocatorFilterEntry> &future,
QList<ILocatorFilter *> filters, QString searchText)
{
QSet<LocatorFilterEntry> alreadyAdded;
const bool checkDuplicates = (filters.size() > 1);
foreach (ILocatorFilter *filter, filters) {
if (entries.isCanceled())
if (future.isCanceled())
break;
foreach (const LocatorFilterEntry &entry, filter->matchesFor(entries, searchText)) {
foreach (const LocatorFilterEntry &entry, filter->matchesFor(future, searchText)) {
if (checkDuplicates && alreadyAdded.contains(entry))
continue;
entries.reportResult(entry);
future.reportResult(entry);
if (checkDuplicates)
alreadyAdded.insert(entry);
}
......
......@@ -35,7 +35,7 @@
namespace Core {
namespace Internal {
void CORE_EXPORT runSearch(QFutureInterface<LocatorFilterEntry> &entries,
void CORE_EXPORT runSearch(QFutureInterface<LocatorFilterEntry> &future,
QList<ILocatorFilter *> filters,
QString searchText);
......
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