mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:47:35 +00:00
AK+LibGUI: Pass predicate to *_matching() methods by const reference
This commit is contained in:
parent
6ed2ded77c
commit
a0a4d169f4
5 changed files with 12 additions and 12 deletions
|
@ -77,7 +77,7 @@ public:
|
|||
}
|
||||
|
||||
template<typename TUnaryPredicate>
|
||||
bool remove_all_matching(TUnaryPredicate predicate)
|
||||
bool remove_all_matching(TUnaryPredicate const& predicate)
|
||||
{
|
||||
return m_table.template remove_all_matching([&](auto& entry) {
|
||||
return predicate(entry.key, entry.value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue