diff --git a/src/OpdsServerStore.cpp b/src/OpdsServerStore.cpp index 781223a9..76826f45 100644 --- a/src/OpdsServerStore.cpp +++ b/src/OpdsServerStore.cpp @@ -4,6 +4,7 @@ #include #include +#include #include #include @@ -16,12 +17,7 @@ namespace { constexpr char OPDS_FILE_JSON[] = "/.crosspoint/opds.json"; bool containsWhitespace(const std::string& value) { - for (const unsigned char ch : value) { - if (std::isspace(ch)) { - return true; - } - } - return false; + return std::any_of(value.begin(), value.end(), [](unsigned char ch) { return std::isspace(ch); }); } } // namespace