summaryrefslogtreecommitdiff
path: root/Userland/Utilities/grep.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Utilities/grep.cpp')
-rw-r--r--Userland/Utilities/grep.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Utilities/grep.cpp b/Userland/Utilities/grep.cpp
index ba3d9bb1d7..3210412f61 100644
--- a/Userland/Utilities/grep.cpp
+++ b/Userland/Utilities/grep.cpp
@@ -59,11 +59,11 @@ int main(int argc, char** argv)
.help_string = "Action to take for binary files ([binary], text, skip)",
.long_name = "binary-mode",
.accept_value = [&](auto* str) {
- if (StringView { "text" } == str)
+ if ("text"sv == str)
binary_mode = BinaryFileMode::Text;
- else if (StringView { "binary" } == str)
+ else if ("binary"sv == str)
binary_mode = BinaryFileMode::Binary;
- else if (StringView { "skip" } == str)
+ else if ("skip"sv == str)
binary_mode = BinaryFileMode::Skip;
else
return false;