Applying readability-simplify-boolean-expr clang-tidy fixes

This commit is contained in:
Bartek Kryza
2022-12-21 17:42:37 +01:00
parent 75db32fdeb
commit 6750365d54
4 changed files with 7 additions and 15 deletions

View File

@@ -38,7 +38,7 @@ inline value_t all_of(InputIterator first, InputIterator last, Predicate pred)
for (InputIterator it = first; it != last; it++) {
value_t m = pred(*it);
if (m.has_value()) {
if (m.value() == true) {
if (m.value()) {
res = true;
}
else {
@@ -59,7 +59,7 @@ inline value_t any_of(InputIterator first, InputIterator last, Predicate pred)
for (InputIterator it = first; it != last; it++) {
value_t m = pred(*it);
if (m.has_value()) {
if (m.value() == true) {
if (m.value()) {
res = true;
break;
}