Skip to content

Commit 5c4b659

Browse files
committed
UI/Qt: Store TVG Image Data in a RefPtr to const
We don't need to mutate this data after it's loaded.
1 parent 4b7f4ae commit 5c4b659

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UI/Qt/TVGIconEngine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class TVGIconEngine : public QIconEngine {
6262
QString pixmap_cache_key(QSize const& size, QIcon::Mode mode, QIcon::State state);
6363

6464
Vector<NonnullRefPtr<Filter>> m_filters;
65-
NonnullRefPtr<Gfx::TinyVGDecodedImageData> m_image_data;
65+
NonnullRefPtr<Gfx::TinyVGDecodedImageData const> m_image_data;
6666
unsigned m_cache_id { next_cache_id() };
6767
};
6868

0 commit comments

Comments
 (0)