diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-06 19:30:59 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-08 00:35:27 +0100 |
commit | 0de33b3d6c3b61a960a8e0aca3a851b8896b7491 (patch) | |
tree | c3766a896465114e0bc5354ce3c6c32af2638a65 /Userland/Demos/Mandelbrot | |
parent | 235f39e449ebffed26114c7166b0b632a3f2232e (diff) | |
download | serenity-0de33b3d6c3b61a960a8e0aca3a851b8896b7491.zip |
LibGfx: Use ErrorOr<T> for Bitmap::try_create()
Another one that was used in a fajillion places.
Diffstat (limited to 'Userland/Demos/Mandelbrot')
-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 174456a084..2241e89fbf 100644 --- a/Userland/Demos/Mandelbrot/Mandelbrot.cpp +++ b/Userland/Demos/Mandelbrot/Mandelbrot.cpp @@ -35,7 +35,7 @@ public: void resize(Gfx::IntSize const& size) { - m_bitmap = Gfx::Bitmap::try_create(Gfx::BitmapFormat::BGRx8888, size); + m_bitmap = Gfx::Bitmap::try_create(Gfx::BitmapFormat::BGRx8888, size).release_value_but_fixme_should_propagate_errors(); correct_aspect(); calculate(); } |