mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:47:45 +00:00
MouseDemo: Replace constructor with initialization at member definition
This adheres to CodingStyle.md#other-punctuation which states: > Prefer initialization at member definition whenever possible Since the zero-arg constructor was only initializing members, it was simply removed.
This commit is contained in:
parent
29de0dbea5
commit
903bfc3d68
1 changed files with 3 additions and 9 deletions
|
@ -146,15 +146,9 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
unsigned m_buttons;
|
unsigned m_buttons { 0 };
|
||||||
unsigned m_wheel_delta_acc;
|
unsigned m_wheel_delta_acc { 0 };
|
||||||
bool m_show_scroll_wheel;
|
bool m_show_scroll_wheel { false };
|
||||||
MainFrame()
|
|
||||||
: m_buttons { 0 }
|
|
||||||
, m_wheel_delta_acc { 0 }
|
|
||||||
, m_show_scroll_wheel { false }
|
|
||||||
{
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue