mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:37:34 +00:00
LibGfx: Make BMPWriter code a tiny bit shorter
This commit is contained in:
parent
871a528f4d
commit
8d3ab2de56
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue