diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-07-04 11:08:46 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-04 14:24:03 +0200 |
commit | 3bbe86d8ead537385de97728d11104cf51d742f5 (patch) | |
tree | 02fd1f3cac66ac12a7c2138ddb1ba8e39a83878e /Userland/Utilities/grep.cpp | |
parent | ea8ff03475181466e15659c599af9edfed92a0fe (diff) | |
download | serenity-3bbe86d8ead537385de97728d11104cf51d742f5.zip |
Everywhere: Prefer using "..."sv over StringView { "..." }
Diffstat (limited to 'Userland/Utilities/grep.cpp')
-rw-r--r-- | Userland/Utilities/grep.cpp | 6 |
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; |