mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
LibGUI: Avoid unnecessary copies of MenuItem pointer sets
This commit is contained in:
parent
c4a9afe31a
commit
fe9e09fa3a
|
@ -134,7 +134,7 @@ public:
|
|||
ActionGroup const* group() const { return m_action_group.ptr(); }
|
||||
void set_group(Badge<ActionGroup>, ActionGroup*);
|
||||
|
||||
HashTable<MenuItem*> menu_items() const { return m_menu_items; }
|
||||
HashTable<MenuItem*> const& menu_items() const { return m_menu_items; }
|
||||
|
||||
private:
|
||||
Action(DeprecatedString, Function<void(Action&)> = nullptr, Core::Object* = nullptr, bool checkable = false);
|
||||
|
|
Loading…
Reference in a new issue