From 2537efaf6493d3208f23cb36edb9d2fb709876af Mon Sep 17 00:00:00 2001 From: Hendiadyoin1 Date: Fri, 1 Mar 2024 14:19:54 +0100 Subject: [PATCH] LibGUI: Use HashMap::keys() to hand out the available sizes of icons --- Userland/Libraries/LibGUI/Icon.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Userland/Libraries/LibGUI/Icon.h b/Userland/Libraries/LibGUI/Icon.h index 111e0cf7bab..4e61c1a52d0 100644 --- a/Userland/Libraries/LibGUI/Icon.h +++ b/Userland/Libraries/LibGUI/Icon.h @@ -23,13 +23,7 @@ public: Gfx::Bitmap const* bitmap_for_size(int) const; void set_bitmap_for_size(int, RefPtr&&); - Vector sizes() const - { - Vector sizes; - for (auto& it : m_bitmaps) - sizes.append(it.key); - return sizes; - } + Vector sizes() const { return m_bitmaps.keys(); } private: IconImpl() = default;