mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -12,7 +12,7 @@
|
|||
|
||||
namespace WindowServer {
|
||||
|
||||
MenuItem::MenuItem(Menu& menu, unsigned identifier, const String& text, const String& shortcut_text, bool enabled, bool checkable, bool checked, const Gfx::Bitmap* icon)
|
||||
MenuItem::MenuItem(Menu& menu, unsigned identifier, String const& text, String const& shortcut_text, bool enabled, bool checkable, bool checked, Gfx::Bitmap const* icon)
|
||||
: m_menu(menu)
|
||||
, m_type(Text)
|
||||
, m_enabled(enabled)
|
||||
|
@ -62,7 +62,7 @@ Menu* MenuItem::submenu()
|
|||
return m_menu.client()->find_menu_by_id(m_submenu_id);
|
||||
}
|
||||
|
||||
const Menu* MenuItem::submenu() const
|
||||
Menu const* MenuItem::submenu() const
|
||||
{
|
||||
VERIFY(is_submenu());
|
||||
VERIFY(m_menu.client());
|
||||
|
@ -76,7 +76,7 @@ Gfx::IntRect MenuItem::rect() const
|
|||
return m_rect.translated(0, m_menu.item_height() - (m_menu.scroll_offset() * m_menu.item_height()));
|
||||
}
|
||||
|
||||
void MenuItem::set_icon(const Gfx::Bitmap* icon)
|
||||
void MenuItem::set_icon(Gfx::Bitmap const* icon)
|
||||
{
|
||||
if (m_icon == icon)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue