From e160181a7388812e55f9308b97b4e508e5105085 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sun, 16 Aug 2020 15:26:21 -0700 Subject: [PATCH] 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. --- Applications/Piano/RollWidget.h | 6 +++--- 1 file 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 }; };