mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09: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
|
@ -422,7 +422,7 @@ public:
|
|||
}
|
||||
|
||||
template<typename TUnaryPredicate>
|
||||
bool remove_all_matching(TUnaryPredicate predicate)
|
||||
bool remove_all_matching(TUnaryPredicate const& predicate)
|
||||
{
|
||||
size_t removed_count = 0;
|
||||
for (size_t i = 0; i < m_capacity; ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue