diff options
Diffstat (limited to 'AK')
-rw-r--r-- | AK/AllOf.h | 6 | ||||
-rw-r--r-- | AK/AnyOf.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/AK/AllOf.h b/AK/AllOf.h index 1248ddb471..96a612decb 100644 --- a/AK/AllOf.h +++ b/AK/AllOf.h @@ -13,9 +13,9 @@ namespace AK { template<typename Container, typename ValueType> constexpr bool all_of( - const SimpleIterator<Container, ValueType>& begin, - const SimpleIterator<Container, ValueType>& end, - const auto& predicate) + SimpleIterator<Container, ValueType> const& begin, + SimpleIterator<Container, ValueType> const& end, + auto const& predicate) { for (auto iter = begin; iter != end; ++iter) { if (!predicate(*iter)) { diff --git a/AK/AnyOf.h b/AK/AnyOf.h index 034c1d57ea..97bacefd46 100644 --- a/AK/AnyOf.h +++ b/AK/AnyOf.h @@ -14,9 +14,9 @@ namespace AK { template<typename Container, typename ValueType> constexpr bool any_of( - const SimpleIterator<Container, ValueType>& begin, - const SimpleIterator<Container, ValueType>& end, - const auto& predicate) + SimpleIterator<Container, ValueType> const& begin, + SimpleIterator<Container, ValueType> const& end, + auto const& predicate) { return find_if(begin, end, predicate) != end; } |