mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
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:
parent
4b7f4aef10
commit
5c4b65996e
Notes:
github-actions[bot]
2025-04-16 16:43:52 +00:00
Author: https://github.com/ADKaster
Commit: 5c4b65996e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4362
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/Hendiadyoin1
1 changed files with 1 additions and 1 deletions
|
|
@ -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() };
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue