mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
Everywhere: Prefer using "..."sv over StringView { "..." }
This commit is contained in:
committed by
Andreas Kling
parent
ea8ff03475
commit
3bbe86d8ea
Notes:
sideshowbarker
2024-07-18 10:30:27 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/3bbe86d8ead Pull-request: https://github.com/SerenityOS/serenity/pull/8425
@@ -98,9 +98,9 @@ int main(int argc, char** argv)
|
||||
.long_name = "show-progress",
|
||||
.short_name = 'p',
|
||||
.accept_value = [&](auto* str) {
|
||||
if (StringView { "true" } == str)
|
||||
if ("true"sv == str)
|
||||
print_progress = true;
|
||||
else if (StringView { "false" } == str)
|
||||
else if ("false"sv == str)
|
||||
print_progress = false;
|
||||
else
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user