diff --git a/src/plugins/coreplugin/locator/locatorwidget.cpp b/src/plugins/coreplugin/locator/locatorwidget.cpp index b4fd73d1907..02ac98f2ef6 100644 --- a/src/plugins/coreplugin/locator/locatorwidget.cpp +++ b/src/plugins/coreplugin/locator/locatorwidget.cpp @@ -40,6 +40,7 @@ #include #include #include +#include #include #include #include @@ -485,11 +486,7 @@ QList LocatorWidget::filtersFor(const QString &text, QString & return prefixFilters; } searchText = text.trimmed(); - QList activeFilters; - foreach (ILocatorFilter *filter, filters) - if (filter->isIncludedByDefault()) - activeFilters << filter; - return activeFilters; + return Utils::filtered(filters, &ILocatorFilter::isIncludedByDefault); } void LocatorWidget::setProgressIndicatorVisible(bool visible)