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:
Andreas Oppebøen 2022-11-27 13:36:07 +01:00 committed by Sam Atkins
parent 29de0dbea5
commit 903bfc3d68
Notes: sideshowbarker 2024-07-17 03:51:32 +09:00

View File

@ -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)