diff options
Diffstat (limited to 'Applications/IRCClient/IRCAppWindow.cpp')
-rw-r--r-- | Applications/IRCClient/IRCAppWindow.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/Applications/IRCClient/IRCAppWindow.cpp b/Applications/IRCClient/IRCAppWindow.cpp index cbb94670b8..b6fc9c01bf 100644 --- a/Applications/IRCClient/IRCAppWindow.cpp +++ b/Applications/IRCClient/IRCAppWindow.cpp @@ -283,16 +283,15 @@ void IRCAppWindow::setup_menus() channel_menu.add_action(*m_invite_user_action); channel_menu.add_action(*m_banlist_action); - RefPtr<GUI::Menu> channel_control_menu = GUI::Menu::construct("Control"); - channel_menu.add_submenu(*channel_control_menu); - channel_control_menu->add_action(*m_voice_user_action); - channel_control_menu->add_action(*m_devoice_user_action); - channel_control_menu->add_action(*m_hop_user_action); - channel_control_menu->add_action(*m_dehop_user_action); - channel_control_menu->add_action(*m_op_user_action); - channel_control_menu->add_action(*m_deop_user_action); - channel_control_menu->add_separator(); - channel_control_menu->add_action(*m_kick_user_action); + auto& channel_control_menu = channel_menu.add_submenu("Control"); + channel_control_menu.add_action(*m_voice_user_action); + channel_control_menu.add_action(*m_devoice_user_action); + channel_control_menu.add_action(*m_hop_user_action); + channel_control_menu.add_action(*m_dehop_user_action); + channel_control_menu.add_action(*m_op_user_action); + channel_control_menu.add_action(*m_deop_user_action); + channel_control_menu.add_separator(); + channel_control_menu.add_action(*m_kick_user_action); channel_menu.add_separator(); channel_menu.add_action(*m_cycle_channel_action); |