diff options
Diffstat (limited to 'Userland/Libraries/LibGfx/ImageDecoder.h')
-rw-r--r-- | Userland/Libraries/LibGfx/ImageDecoder.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/ImageDecoder.h b/Userland/Libraries/LibGfx/ImageDecoder.h index 0855673871..a22dc3b584 100644 --- a/Userland/Libraries/LibGfx/ImageDecoder.h +++ b/Userland/Libraries/LibGfx/ImageDecoder.h @@ -33,7 +33,7 @@ public: virtual RefPtr<Gfx::Bitmap> bitmap() = 0; virtual void set_volatile() = 0; - [[nodiscard]] virtual bool set_nonvolatile() = 0; + [[nodiscard]] virtual bool set_nonvolatile(bool& was_purged) = 0; virtual bool sniff() = 0; @@ -63,7 +63,7 @@ public: if (m_plugin) m_plugin->set_volatile(); } - [[nodiscard]] bool set_nonvolatile() { return m_plugin ? m_plugin->set_nonvolatile() : false; } + [[nodiscard]] bool set_nonvolatile(bool& was_purged) { return m_plugin ? m_plugin->set_nonvolatile(was_purged) : false; } bool sniff() const { return m_plugin ? m_plugin->sniff() : false; } bool is_animated() const { return m_plugin ? m_plugin->is_animated() : false; } size_t loop_count() const { return m_plugin ? m_plugin->loop_count() : 0; } |