diff options
Diffstat (limited to 'Userland/Utilities/nl.cpp')
-rw-r--r-- | Userland/Utilities/nl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Utilities/nl.cpp b/Userland/Utilities/nl.cpp index ae4d856551..6b0e131e23 100644 --- a/Userland/Utilities/nl.cpp +++ b/Userland/Utilities/nl.cpp @@ -35,12 +35,12 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) "body-numbering", 'b', "style", - [&number_style](char const* s) { - if (!strcmp(s, "t")) + [&number_style](StringView s) { + if (s == "t"sv) number_style = NumberNonEmptyLines; - else if (!strcmp(s, "a")) + else if (s == "a"sv) number_style = NumberAllLines; - else if (!strcmp(s, "n")) + else if (s == "n"sv) number_style = NumberNoLines; else return false; |