mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 07:14:57 +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:
parent
e9dda8d592
commit
fd5eb79d19
39 changed files with 88 additions and 86 deletions
|
@ -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)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue