AK+LibGUI: Pass predicate to *_matching() methods by const reference

This commit is contained in:
Vitaly Dyachkov 2022-04-12 19:21:05 +02:00 committed by Linus Groh
commit a0a4d169f4
Notes: sideshowbarker 2024-07-17 11:08:20 +09:00
5 changed files with 12 additions and 12 deletions

View file

@ -76,7 +76,7 @@ public:
return *m_indices.begin();
}
void remove_all_matching(Function<bool(ModelIndex const&)> filter);
void remove_all_matching(Function<bool(ModelIndex const&)> const& filter);
template<typename Function>
void change_from_model(Badge<SortingProxyModel>, Function f)