mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
LibTextCodec+Everywhere: Make TextCodec::decoder_for() take a StringView
We don't need a full String/DeprecatedString inside this function, so we might as well not force users to create one.
This commit is contained in:
parent
3c8bfa4662
commit
d6075ef5b5
14 changed files with 16 additions and 16 deletions
|
@ -30,7 +30,7 @@ TurkishDecoder s_turkish_decoder;
|
|||
XUserDefinedDecoder s_x_user_defined_decoder;
|
||||
}
|
||||
|
||||
Decoder* decoder_for(DeprecatedString const& a_encoding)
|
||||
Decoder* decoder_for(StringView a_encoding)
|
||||
{
|
||||
auto encoding = get_standardized_encoding(a_encoding);
|
||||
if (encoding.has_value()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue