mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +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
|
@ -1331,7 +1331,7 @@ URL URLParser::basic_parse(StringView raw_input, Optional<URL> const& base_url,
|
|||
// -> file state, https://url.spec.whatwg.org/#file-state
|
||||
case State::File:
|
||||
// 1. Set url’s scheme to "file".
|
||||
url->m_scheme = String::from_utf8("file"sv).release_value_but_fixme_should_propagate_errors();
|
||||
url->m_scheme = "file"_string;
|
||||
|
||||
// 2. Set url’s host to the empty string.
|
||||
url->m_host = String {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue