mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 17:16:04 +00:00
Everywhere: Use _{short_,}string to create Strings from literals
This commit is contained in:
parent
85414d9338
commit
09d40bfbb2
Notes:
sideshowbarker
2024-07-16 23:45:42 +09:00
Author: https://github.com/linusg
Commit: 09d40bfbb2
Pull-request: https://github.com/SerenityOS/serenity/pull/17619
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/MacDue
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/trflynn89
92 changed files with 334 additions and 310 deletions
|
@ -54,11 +54,11 @@ private:
|
|||
case Mode::Open:
|
||||
case Mode::OpenMultiple:
|
||||
case Mode::OpenFolder:
|
||||
return String::from_utf8_short_string("Open"sv);
|
||||
return "Open"_short_string;
|
||||
case Mode::Save:
|
||||
return String::from_utf8_short_string("Save"sv);
|
||||
return "Save"_short_string;
|
||||
default:
|
||||
return String::from_utf8_short_string("OK"sv);
|
||||
return "OK"_short_string;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue