mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 19:16:02 +00:00
Everywhere: Prefer _string
when constructing strings from literals
This commit is contained in:
parent
bb9da0ed8d
commit
4a7236cabf
Notes:
sideshowbarker
2024-07-17 03:03:15 +09:00
Author: https://github.com/tcl3
Commit: 4a7236cabf
Pull-request: https://github.com/SerenityOS/serenity/pull/23112
Reviewed-by: https://github.com/trflynn89
4 changed files with 13 additions and 13 deletions
|
@ -20,7 +20,7 @@ ErrorOr<String> read_long_version_string()
|
|||
|
||||
return String::formatted("Version {} revision {}", version, git_hash);
|
||||
#else
|
||||
return String::from_utf8("Version 1.0"sv);
|
||||
return "Version 1.0"_string;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue