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;