mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 13:57:36 +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
10 changed files with 10 additions and 11 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue