From 0de33b3d6c3b61a960a8e0aca3a851b8896b7491 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 6 Nov 2021 19:30:59 +0100 Subject: LibGfx: Use ErrorOr for Bitmap::try_create() Another one that was used in a fajillion places. --- Userland/Demos/Mandelbrot/Mandelbrot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Demos/Mandelbrot') 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(); } -- cgit v1.2.3