summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AK/CheckedFormatString.h3
-rw-r--r--AK/MACAddress.h2
-rw-r--r--AK/StringUtils.cpp2
-rw-r--r--AK/UUID.cpp2
-rw-r--r--Kernel/Storage/Partition/DiskPartitionMetadata.cpp2
-rw-r--r--Kernel/Storage/Partition/GUIDPartitionTable.cpp2
-rw-r--r--Userland/Libraries/LibIMAP/Objects.cpp2
-rw-r--r--Userland/Libraries/LibJS/Runtime/OrdinaryFunctionObject.cpp2
-rw-r--r--Userland/Libraries/LibJS/Runtime/Value.cpp2
-rw-r--r--Userland/Libraries/LibWeb/Cookie/ParsedCookie.cpp2
10 files changed, 10 insertions, 11 deletions
diff --git a/AK/CheckedFormatString.h b/AK/CheckedFormatString.h
index b08e4d12ad..bffce42202 100644
--- a/AK/CheckedFormatString.h
+++ b/AK/CheckedFormatString.h
@@ -199,8 +199,7 @@ private:
return false;
};
auto references_all_arguments = AK::all_of(
- all_parameters.begin(),
- all_parameters.end(),
+ all_parameters,
[&](auto& entry) {
return contains(
check.used_arguments.begin(),
diff --git a/AK/MACAddress.h b/AK/MACAddress.h
index 155d9500fc..27ae58909c 100644
--- a/AK/MACAddress.h
+++ b/AK/MACAddress.h
@@ -81,7 +81,7 @@ public:
constexpr bool is_zero() const
{
- return all_of(m_data.begin(), m_data.end(), [](const auto octet) { return octet == 0; });
+ return all_of(m_data, [](const auto octet) { return octet == 0; });
}
void copy_to(Bytes destination) const
diff --git a/AK/StringUtils.cpp b/AK/StringUtils.cpp
index 79ee530309..2c99617848 100644
--- a/AK/StringUtils.cpp
+++ b/AK/StringUtils.cpp
@@ -284,7 +284,7 @@ bool contains(const StringView& str, const StringView& needle, CaseSensitivity c
bool is_whitespace(const StringView& str)
{
- return all_of(str.begin(), str.end(), is_ascii_space);
+ return all_of(str, is_ascii_space);
}
StringView trim(const StringView& str, const StringView& characters, TrimMode mode)
diff --git a/AK/UUID.cpp b/AK/UUID.cpp
index 839bffeb0f..1234c29ad3 100644
--- a/AK/UUID.cpp
+++ b/AK/UUID.cpp
@@ -70,7 +70,7 @@ bool UUID::operator==(const UUID& other) const
bool UUID::is_zero() const
{
- return all_of(m_uuid_buffer.begin(), m_uuid_buffer.end(), [](const auto octet) { return octet == 0; });
+ return all_of(m_uuid_buffer, [](const auto octet) { return octet == 0; });
}
}
diff --git a/Kernel/Storage/Partition/DiskPartitionMetadata.cpp b/Kernel/Storage/Partition/DiskPartitionMetadata.cpp
index d95ea80fed..39b97902f4 100644
--- a/Kernel/Storage/Partition/DiskPartitionMetadata.cpp
+++ b/Kernel/Storage/Partition/DiskPartitionMetadata.cpp
@@ -34,7 +34,7 @@ bool DiskPartitionMetadata::PartitionType::is_uuid() const
}
bool DiskPartitionMetadata::PartitionType::is_valid() const
{
- return !all_of(m_partition_type.begin(), m_partition_type.end(), [](const auto octet) { return octet == 0; });
+ return !all_of(m_partition_type, [](const auto octet) { return octet == 0; });
}
DiskPartitionMetadata::DiskPartitionMetadata(u64 start_block, u64 end_block, u8 partition_type)
diff --git a/Kernel/Storage/Partition/GUIDPartitionTable.cpp b/Kernel/Storage/Partition/GUIDPartitionTable.cpp
index a1c7e5d1f8..fabac2db63 100644
--- a/Kernel/Storage/Partition/GUIDPartitionTable.cpp
+++ b/Kernel/Storage/Partition/GUIDPartitionTable.cpp
@@ -118,7 +118,7 @@ bool GUIDPartitionTable::initialize()
bool GUIDPartitionTable::is_unused_entry(Array<u8, 16> partition_type) const
{
- return all_of(partition_type.begin(), partition_type.end(), [](const auto octet) { return octet == 0; });
+ return all_of(partition_type, [](const auto octet) { return octet == 0; });
}
}
diff --git a/Userland/Libraries/LibIMAP/Objects.cpp b/Userland/Libraries/LibIMAP/Objects.cpp
index 1b99fb428b..c8f87857e9 100644
--- a/Userland/Libraries/LibIMAP/Objects.cpp
+++ b/Userland/Libraries/LibIMAP/Objects.cpp
@@ -120,7 +120,7 @@ String serialize_astring(StringView string)
auto non_atom_chars = { '(', ')', '{', ' ', '%', '*', '"', '\\', ']' };
return AK::find(non_atom_chars.begin(), non_atom_chars.end(), x) != non_atom_chars.end();
};
- auto is_atom = all_of(string.begin(), string.end(), [&](auto ch) { return is_ascii_control(ch) && !is_non_atom_char(ch); });
+ auto is_atom = all_of(string, [&](auto ch) { return is_ascii_control(ch) && !is_non_atom_char(ch); });
if (is_atom) {
return string;
}
diff --git a/Userland/Libraries/LibJS/Runtime/OrdinaryFunctionObject.cpp b/Userland/Libraries/LibJS/Runtime/OrdinaryFunctionObject.cpp
index f028276732..9fbff65da7 100644
--- a/Userland/Libraries/LibJS/Runtime/OrdinaryFunctionObject.cpp
+++ b/Userland/Libraries/LibJS/Runtime/OrdinaryFunctionObject.cpp
@@ -58,7 +58,7 @@ OrdinaryFunctionObject::OrdinaryFunctionObject(GlobalObject& global_object, cons
set_this_mode(ThisMode::Global);
// 15.1.3 Static Semantics: IsSimpleParameterList, https://tc39.es/ecma262/#sec-static-semantics-issimpleparameterlist
- set_has_simple_parameter_list(all_of(m_parameters.begin(), m_parameters.end(), [&](auto& parameter) {
+ set_has_simple_parameter_list(all_of(m_parameters, [&](auto& parameter) {
if (parameter.is_rest)
return false;
if (parameter.default_value)
diff --git a/Userland/Libraries/LibJS/Runtime/Value.cpp b/Userland/Libraries/LibJS/Runtime/Value.cpp
index a3241b4c3d..76c6d4cc41 100644
--- a/Userland/Libraries/LibJS/Runtime/Value.cpp
+++ b/Userland/Libraries/LibJS/Runtime/Value.cpp
@@ -53,7 +53,7 @@ static bool is_valid_bigint_value(StringView string)
string = string.trim_whitespace();
if (string.length() > 1 && (string[0] == '-' || string[0] == '+'))
string = string.substring_view(1, string.length() - 1);
- return all_of(string.begin(), string.end(), [](auto ch) { return isdigit(ch); });
+ return all_of(string, [](auto ch) { return isdigit(ch); });
}
ALWAYS_INLINE bool both_number(const Value& lhs, const Value& rhs)
diff --git a/Userland/Libraries/LibWeb/Cookie/ParsedCookie.cpp b/Userland/Libraries/LibWeb/Cookie/ParsedCookie.cpp
index a11bd105e7..4c1ed3f922 100644
--- a/Userland/Libraries/LibWeb/Cookie/ParsedCookie.cpp
+++ b/Userland/Libraries/LibWeb/Cookie/ParsedCookie.cpp
@@ -231,7 +231,7 @@ Optional<Core::DateTime> parse_date_time(StringView date_string)
unsigned year = 0;
auto to_uint = [](StringView token, unsigned& result) {
- if (!all_of(token.begin(), token.end(), isdigit))
+ if (!all_of(token, isdigit))
return false;
if (auto converted = token.to_uint(); converted.has_value()) {