mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +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
|
@ -11,7 +11,7 @@
|
|||
|
||||
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
|
||||
{
|
||||
auto* decoder = TextCodec::decoder_for("iso-8859-2");
|
||||
auto* decoder = TextCodec::decoder_for("iso-8859-2"sv);
|
||||
VERIFY(decoder);
|
||||
decoder->to_utf8({ data, size });
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue