mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:28:11 +00:00
Everywhere: Convert known short-strings to the infallible String factory
For now, this is limited to strings that are 3 bytes or less. We can use 7 bytes on 64-bit platforms, but we do not yet assume 64-bit for Lagom hosts (e.g. wasm).
This commit is contained in:
parent
d48266a420
commit
f1de4f8872
7 changed files with 7 additions and 7 deletions
|
@ -1377,7 +1377,7 @@ static LanguageMapping const* resolve_likely_subtag(LanguageID const& language_i
|
|||
if (!language_id.script.has_value())
|
||||
continue;
|
||||
|
||||
search_key.language = String::from_utf8("und"sv).release_value_but_fixme_should_propagate_errors();
|
||||
search_key.language = String::from_utf8_short_string("und"sv);
|
||||
search_key.script = *language_id.script;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue