1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 12:35:08 +00:00

Update Badge<T> instantiations to simply be {}.

This commit is contained in:
Andreas Kling 2019-05-31 15:44:04 +02:00
parent fa6446fc0d
commit fdf3608c8a
11 changed files with 23 additions and 23 deletions

View file

@ -39,19 +39,19 @@ GAction::GAction(const String& text, const GShortcut& shortcut, RetainPtr<Graphi
{
if (m_widget) {
m_scope = ShortcutScope::WidgetLocal;
m_widget->register_local_shortcut_action(Badge<GAction>(), *this);
m_widget->register_local_shortcut_action({}, *this);
} else {
m_scope = ShortcutScope::ApplicationGlobal;
GApplication::the().register_global_shortcut_action(Badge<GAction>(), *this);
GApplication::the().register_global_shortcut_action({}, *this);
}
}
GAction::~GAction()
{
if (m_shortcut.is_valid() && m_scope == ShortcutScope::ApplicationGlobal)
GApplication::the().unregister_global_shortcut_action(Badge<GAction>(), *this);
GApplication::the().unregister_global_shortcut_action({}, *this);
if (m_widget && m_scope == ShortcutScope::WidgetLocal)
m_widget->unregister_local_shortcut_action(Badge<GAction>(), *this);
m_widget->unregister_local_shortcut_action({}, *this);
}
void GAction::activate()