mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 00:56:14 +00:00
LibGUI: Make GMenu inherit from CObject
This is primarily to make it possible to pass a GMenu* where a CObject* is expected.
This commit is contained in:
@@ -39,7 +39,7 @@ void GMenu::add_action(NonnullRefPtr<GAction> action)
|
||||
#endif
|
||||
}
|
||||
|
||||
void GMenu::add_submenu(NonnullOwnPtr<GMenu> submenu)
|
||||
void GMenu::add_submenu(NonnullRefPtr<GMenu> submenu)
|
||||
{
|
||||
m_items.append(make<GMenuItem>(m_menu_id, move(submenu)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user