From 5a79c69b0216f070b07d8238e4c2c7e3420faeec Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 20 Nov 2021 14:29:33 +0100 Subject: LibGfx: Make ImageDecoderPlugin::frame() return ErrorOr<> This is a first step towards better error propagation from image codecs. --- Userland/Libraries/LibGfx/PNGLoader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibGfx/PNGLoader.h') diff --git a/Userland/Libraries/LibGfx/PNGLoader.h b/Userland/Libraries/LibGfx/PNGLoader.h index 77c4b19c3d..9f7c0e7b6c 100644 --- a/Userland/Libraries/LibGfx/PNGLoader.h +++ b/Userland/Libraries/LibGfx/PNGLoader.h @@ -24,7 +24,7 @@ public: virtual bool is_animated() override; virtual size_t loop_count() override; virtual size_t frame_count() override; - virtual ImageFrameDescriptor frame(size_t i) override; + virtual ErrorOr frame(size_t index) override; private: OwnPtr m_context; -- cgit v1.2.3