mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
Everywhere: Prefer using "..."sv over StringView { "..." }
This commit is contained in:
parent
ea8ff03475
commit
3bbe86d8ea
Notes:
sideshowbarker
2024-07-18 10:30:27 +09:00
Author: https://github.com/gunnarbeutner
Commit: 3bbe86d8ea
Pull-request: https://github.com/SerenityOS/serenity/pull/8425
11 changed files with 35 additions and 35 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue