mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 09:18:05 +03: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
Notes:
sideshowbarker
2024-07-17 03:51:32 +09:00
Author: https://github.com/andreao Commit: https://github.com/SerenityOS/serenity/commit/903bfc3d68 Pull-request: https://github.com/SerenityOS/serenity/pull/16219 Reviewed-by: https://github.com/AtkinsSJ ✅ Reviewed-by: https://github.com/martinfalisse
@ -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 New Issue
Block a user