UI/Qt: Store TVG Image Data in a RefPtr to const

We don't need to mutate this data after it's loaded.
This commit is contained in:
Andrew Kaster 2025-04-15 15:53:33 -06:00
parent 42fc36a9f2
commit db73b26292

View file

@ -62,7 +62,7 @@ private:
QString pixmap_cache_key(QSize const& size, QIcon::Mode mode, QIcon::State state);
Vector<NonnullRefPtr<Filter>> m_filters;
NonnullRefPtr<Gfx::TinyVGDecodedImageData> m_image_data;
NonnullRefPtr<Gfx::TinyVGDecodedImageData const> m_image_data;
unsigned m_cache_id { next_cache_id() };
};