mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03:00
LibGUI: Use HashMap::keys() to hand out the available sizes of icons
This commit is contained in:
parent
e1c663ba27
commit
2537efaf64
Notes:
sideshowbarker
2024-07-17 05:23:40 +09:00
Author: https://github.com/Hendiadyoin1 Commit: https://github.com/SerenityOS/serenity/commit/2537efaf64 Pull-request: https://github.com/SerenityOS/serenity/pull/23403 Reviewed-by: https://github.com/ADKaster ✅
@ -23,13 +23,7 @@ public:
|
|||||||
Gfx::Bitmap const* bitmap_for_size(int) const;
|
Gfx::Bitmap const* bitmap_for_size(int) const;
|
||||||
void set_bitmap_for_size(int, RefPtr<Gfx::Bitmap const>&&);
|
void set_bitmap_for_size(int, RefPtr<Gfx::Bitmap const>&&);
|
||||||
|
|
||||||
Vector<int> sizes() const
|
Vector<int> sizes() const { return m_bitmaps.keys(); }
|
||||||
{
|
|
||||||
Vector<int> sizes;
|
|
||||||
for (auto& it : m_bitmaps)
|
|
||||||
sizes.append(it.key);
|
|
||||||
return sizes;
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
IconImpl() = default;
|
IconImpl() = default;
|
||||||
|
Loading…
Reference in New Issue
Block a user