From babe924da1576297aa6d3c5e9b4e924e6a99e388 Mon Sep 17 00:00:00 2001 From: Lucas CHOLLET Date: Sat, 8 Jul 2023 23:52:52 -0400 Subject: [PATCH] LibGfx: Provide a default implementation for `ImageDecoder::initialize` In order to ease the removal of this function, let's provide a no-op default implementation so decoders can stop implementing it one by one. First step of #19893 --- Userland/Libraries/LibGfx/ImageFormats/ImageDecoder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGfx/ImageFormats/ImageDecoder.h b/Userland/Libraries/LibGfx/ImageFormats/ImageDecoder.h index 88aa91c760..e9498e4924 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/ImageDecoder.h +++ b/Userland/Libraries/LibGfx/ImageFormats/ImageDecoder.h @@ -31,7 +31,7 @@ public: virtual IntSize size() = 0; - virtual ErrorOr initialize() = 0; + virtual ErrorOr initialize() { return {}; } virtual bool is_animated() = 0; virtual size_t loop_count() = 0;