mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:37:35 +00:00
LibCompress: Rename Compress::Zlib
to Compress::ZlibDecompressor
Because that's what it is, even if it mainly relies on `DeflateDecompressor` to do the heavy lifting.
This commit is contained in:
parent
edd004fe90
commit
23a9d62f39
6 changed files with 14 additions and 14 deletions
|
@ -120,7 +120,7 @@ ErrorOr<NonnullRefPtr<Font>> Font::try_load_from_externally_owned_memory(Readonl
|
|||
if (font_buffer_offset + orig_length > font_buffer.size())
|
||||
return Error::from_string_literal("Uncompressed WOFF table too big");
|
||||
if (comp_length < orig_length) {
|
||||
auto decompressed = Compress::Zlib::decompress_all(buffer.slice(offset, comp_length));
|
||||
auto decompressed = Compress::ZlibDecompressor::decompress_all(buffer.slice(offset, comp_length));
|
||||
if (!decompressed.has_value())
|
||||
return Error::from_string_literal("Could not decompress WOFF table");
|
||||
if (orig_length != decompressed->size())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue