mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
Everywhere: Make use of container version of all_of
Problem: - New `all_of` implementation takes the entire container so the user does not need to pass explicit begin/end iterators. This is unused except is in tests. Solution: - Make use of the new and more user-friendly version where possible.
This commit is contained in:
parent
2c042e3530
commit
97bd13264a
Notes:
sideshowbarker
2024-07-18 07:32:54 +09:00
Author: https://github.com/ldm5180
Commit: 97bd13264a
Pull-request: https://github.com/SerenityOS/serenity/pull/9012
10 changed files with 10 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue