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

LibGfx: Make BMPWriter::dump() return ErrorOr

...and use TRY() consistently in BMPWriter.cpp
This commit is contained in:
Nico Weber 2023-03-12 13:22:19 -04:00 committed by Linus Groh
parent a2ccf38f11
commit c587ada084
2 changed files with 7 additions and 16 deletions

View file

@ -30,7 +30,7 @@ public:
private:
BMPWriter() = default;
ByteBuffer dump(Bitmap const&, Options options);
ErrorOr<ByteBuffer> dump(Bitmap const&, Options options);
enum class Compression : u32 {
BI_RGB = 0,