mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +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
|
@ -146,15 +146,9 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
unsigned m_buttons;
|
||||
unsigned m_wheel_delta_acc;
|
||||
bool m_show_scroll_wheel;
|
||||
MainFrame()
|
||||
: m_buttons { 0 }
|
||||
, m_wheel_delta_acc { 0 }
|
||||
, m_show_scroll_wheel { false }
|
||||
{
|
||||
}
|
||||
unsigned m_buttons { 0 };
|
||||
unsigned m_wheel_delta_acc { 0 };
|
||||
bool m_show_scroll_wheel { false };
|
||||
};
|
||||
|
||||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
|
|
Loading…
Reference in a new issue