From 2dc31c503e9d37343f56336cf30a5f8d5fbb1348 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Thu, 22 Jul 2021 19:13:56 +0430 Subject: [PATCH] AK: Convert AnyOf/AllOf to east-const style --- AK/AllOf.h | 6 +++--- AK/AnyOf.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/AK/AllOf.h b/AK/AllOf.h index 1248ddb4711..96a612decb2 100644 --- a/AK/AllOf.h +++ b/AK/AllOf.h @@ -13,9 +13,9 @@ namespace AK { template constexpr bool all_of( - const SimpleIterator& begin, - const SimpleIterator& end, - const auto& predicate) + SimpleIterator const& begin, + SimpleIterator 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 034c1d57ea3..97bacefd462 100644 --- a/AK/AnyOf.h +++ b/AK/AnyOf.h @@ -14,9 +14,9 @@ namespace AK { template constexpr bool any_of( - const SimpleIterator& begin, - const SimpleIterator& end, - const auto& predicate) + SimpleIterator const& begin, + SimpleIterator const& end, + auto const& predicate) { return find_if(begin, end, predicate) != end; }