diff options
author | Nico Weber <thakis@chromium.org> | 2023-03-12 09:05:25 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-12 13:23:34 +0000 |
commit | 9b297c634f82479f3b6851b77f9af9e1486c4546 (patch) | |
tree | cb566f3d3fcb592a496ab562c3df4bd11165dbc9 /Userland/Demos | |
parent | b698d64ee9161ae107d2f8fd783b04efe0bb1f59 (diff) | |
download | serenity-9b297c634f82479f3b6851b77f9af9e1486c4546.zip |
LibGfx: Make QOIWriter use ErrorOr
In addition to it now handling allocation failures, the encode() API is
now consistent with PNGWriter.
Diffstat (limited to 'Userland/Demos')
-rw-r--r-- | Userland/Demos/Mandelbrot/Mandelbrot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Demos/Mandelbrot/Mandelbrot.cpp b/Userland/Demos/Mandelbrot/Mandelbrot.cpp index cf65d28df6..c975bbaf9c 100644 --- a/Userland/Demos/Mandelbrot/Mandelbrot.cpp +++ b/Userland/Demos/Mandelbrot/Mandelbrot.cpp @@ -380,7 +380,7 @@ ErrorOr<void> Mandelbrot::export_image(DeprecatedString const& export_path, Imag encoded_data = TRY(Gfx::PNGWriter::encode(m_set.bitmap())); break; case ImageType::QOI: - encoded_data = Gfx::QOIWriter::encode(m_set.bitmap()); + encoded_data = TRY(Gfx::QOIWriter::encode(m_set.bitmap())); break; default: VERIFY_NOT_REACHED(); |