mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:08:12 +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
|
@ -706,7 +706,7 @@ static ErrorOr<void> decode_png_bitmap(PNGLoadingContext& context)
|
|||
if (context.color_type == PNG::ColorType::IndexedColor && context.palette_data.is_empty())
|
||||
return Error::from_string_literal("PNGImageDecoderPlugin: Didn't see a PLTE chunk for a palletized image, or it was empty.");
|
||||
|
||||
auto result = Compress::Zlib::decompress_all(context.compressed_data.span());
|
||||
auto result = Compress::ZlibDecompressor::decompress_all(context.compressed_data.span());
|
||||
if (!result.has_value()) {
|
||||
context.state = PNGLoadingContext::State::Error;
|
||||
return Error::from_string_literal("PNGImageDecoderPlugin: Decompression failed");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue