1
Fork 0
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:
Tim Ledbetter 2024-02-07 17:53:38 +00:00 committed by Tim Flynn
parent bb9da0ed8d
commit 4a7236cabf
4 changed files with 13 additions and 13 deletions

View file

@ -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 urls 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 urls host to the empty string.
url->m_host = String {};