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:
parent
a2ccf38f11
commit
c587ada084
2 changed files with 7 additions and 16 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue