From af562c857e0506d656238360dcf21f7fa042a233 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 6 Nov 2021 10:15:13 +0100 Subject: LibGfx: Use ErrorOr for Gfx::Bitmap::allocate_backing_store() --- Userland/Libraries/LibGfx/Bitmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibGfx/Bitmap.h') diff --git a/Userland/Libraries/LibGfx/Bitmap.h b/Userland/Libraries/LibGfx/Bitmap.h index 9cffbb5dbc..3463cde71d 100644 --- a/Userland/Libraries/LibGfx/Bitmap.h +++ b/Userland/Libraries/LibGfx/Bitmap.h @@ -241,7 +241,7 @@ private: Bitmap(BitmapFormat, const IntSize&, int, size_t pitch, void*); Bitmap(BitmapFormat, Core::AnonymousBuffer, const IntSize&, int, const Vector& palette); - static Optional try_allocate_backing_store(BitmapFormat format, IntSize const& size, int scale_factor); + static ErrorOr allocate_backing_store(BitmapFormat format, IntSize const& size, int scale_factor); void allocate_palette_from_format(BitmapFormat, const Vector& source_palette); -- cgit v1.2.3