1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:57:44 +00:00

LibGfx: Make BMPWriter code a tiny bit shorter

This commit is contained in:
Nico Weber 2023-03-15 12:28:12 +01:00 committed by Linus Groh
parent 871a528f4d
commit 8d3ab2de56

View file

@ -170,7 +170,7 @@ ErrorOr<ByteBuffer> BMPWriter::dump(Bitmap const& bitmap, Options options)
if (icc_data.has_value())
TRY(buffer.try_append(icc_data.value()));
TRY(buffer.try_append(pixel_data.data(), pixel_data.size()));
TRY(buffer.try_append(pixel_data));
return buffer;
}