summaryrefslogtreecommitdiff
path: root/Userland/Demos
diff options
context:
space:
mode:
authorAndreas Oppebøen <andreas.oppeboen@gmail.com>2022-11-27 13:36:07 +0100
committerSam Atkins <atkinssj@gmail.com>2022-11-30 12:56:29 +0000
commit903bfc3d68ff668f5cf81a1301b7bada8776e678 (patch)
treeaa24acc3a864c14c8129e2bde9c2c0405b8da617 /Userland/Demos
parent29de0dbea52919ce49ca9638e8cb346fac562baa (diff)
downloadserenity-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.cpp12
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)