mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 03:56:16 +00:00
AK+LibGUI: Pass predicate to *_matching() methods by const reference
This commit is contained in:
parent
6ed2ded77c
commit
a0a4d169f4
Notes:
sideshowbarker
2024-07-17 11:08:20 +09:00
Author: https://github.com/obyknovenius
Commit: a0a4d169f4
Pull-request: https://github.com/SerenityOS/serenity/pull/13641
Reviewed-by: https://github.com/ldm5180 ✅
5 changed files with 12 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue