mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 18:27:36 +00:00
Everywhere: Prefer _string
when constructing strings from literals
This commit is contained in:
parent
bb9da0ed8d
commit
4a7236cabf
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