diff options
author | Brian Gianforcaro <b.gianfo@gmail.com> | 2020-08-16 15:26:21 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-17 09:17:57 +0200 |
commit | e160181a7388812e55f9308b97b4e508e5105085 (patch) | |
tree | 5a0ee99f2cdc4f8b2de9f486534823d68cd4d2e3 /Applications/Piano | |
parent | eed9f2bac3090f7a6aab5ad5a6322285470ac14f (diff) | |
download | serenity-e160181a7388812e55f9308b97b4e508e5105085.zip |
Piano: Uninitialized member variables in RollWidet, found by Coverity
This seem like they wouldn't cause any problems in reality,
but it's nice to fix them to avoid any future misuse.
Diffstat (limited to 'Applications/Piano')
-rw-r--r-- | Applications/Piano/RollWidget.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Applications/Piano/RollWidget.h b/Applications/Piano/RollWidget.h index 4311038218..6c5acbf224 100644 --- a/Applications/Piano/RollWidget.h +++ b/Applications/Piano/RollWidget.h @@ -46,8 +46,8 @@ private: TrackManager& m_track_manager; - int m_roll_width; - int m_num_notes; - double m_note_width; + int m_roll_width { 0 }; + int m_num_notes { 0 }; + double m_note_width { 0.0 }; int m_zoom_level { 1 }; }; |