diff options
Diffstat (limited to 'src/command/FileCommands.cxx')
-rw-r--r-- | src/command/FileCommands.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/command/FileCommands.cxx b/src/command/FileCommands.cxx index d8be0da4a..ebe229ebd 100644 --- a/src/command/FileCommands.cxx +++ b/src/command/FileCommands.cxx @@ -127,12 +127,7 @@ gcc_pure static bool IsValidValue(const StringView s) noexcept { - for (const char ch : s) { - if ((unsigned char)ch < 0x20) - return false; - } - - return true; + return std::none_of(s.begin(), s.end(), [](const auto &ch) { return (unsigned char)ch < 0x20; }); } class PrintCommentHandler final : public NullTagHandler { |