diff options
author | Andreas Oppebøen <andreas.oppeboen@gmail.com> | 2022-11-27 13:36:07 +0100 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2022-11-30 12:56:29 +0000 |
commit | 903bfc3d68ff668f5cf81a1301b7bada8776e678 (patch) | |
tree | aa24acc3a864c14c8129e2bde9c2c0405b8da617 /Userland/Demos | |
parent | 29de0dbea52919ce49ca9638e8cb346fac562baa (diff) | |
download | serenity-903bfc3d68ff668f5cf81a1301b7bada8776e678.zip |
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.
Diffstat (limited to 'Userland/Demos')
-rw-r--r-- | Userland/Demos/Mouse/main.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Userland/Demos/Mouse/main.cpp b/Userland/Demos/Mouse/main.cpp index f01b70272f..d9b74e3fbc 100644 --- a/Userland/Demos/Mouse/main.cpp +++ b/Userland/Demos/Mouse/main.cpp @@ -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) |