mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
Userland: Prefer _short_string
over String::from_utf8_short_string
This user-defined literal is a strictly equivalent but shorter alias to `String::from_utf8_short_string`.
This commit is contained in:
parent
66645cdc94
commit
a5edc9cdfc
7 changed files with 8 additions and 8 deletions
|
@ -82,7 +82,7 @@ ErrorOr<NonnullRefPtr<PageNode const>> Node::try_create_from_query(Vector<String
|
|||
|
||||
ErrorOr<NonnullRefPtr<Node const>> Node::try_find_from_help_url(URL const& url)
|
||||
{
|
||||
if (url.host() != String::from_utf8_short_string("man"sv))
|
||||
if (url.host() != "man"_short_string)
|
||||
return Error::from_string_view("Bad help operation"sv);
|
||||
if (url.path_segment_count() < 2)
|
||||
return Error::from_string_view("Bad help page URL"sv);
|
||||
|
|
|
@ -1142,7 +1142,7 @@ WebIDL::ExceptionOr<void> BrowsingContext::navigate(
|
|||
} else {
|
||||
// Otherwise let navigation id be the result of generating a random UUID. [UUID]
|
||||
// FIXME: Generate a UUID.
|
||||
navigation_id = String::from_utf8_short_string("FIXME"sv);
|
||||
navigation_id = "FIXME"_short_string;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue