1
0
Fork 0
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:
Vitaly Dyachkov 2022-04-12 19:21:05 +02:00 committed by Linus Groh
parent 6ed2ded77c
commit a0a4d169f4
Notes: sideshowbarker 2024-07-17 11:08:20 +09:00
5 changed files with 12 additions and 12 deletions

View file

@ -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) {