mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:17:44 +00:00
Piano: Initialize keys[] at member definition
This commit is contained in:
parent
aeefcd6ddb
commit
27ebf3ff32
2 changed files with 1 additions and 2 deletions
|
@ -6,7 +6,6 @@
|
|||
|
||||
PianoWidget::PianoWidget()
|
||||
{
|
||||
memset(keys, 0, sizeof(keys));
|
||||
m_front_buffer = new Sample[2048];
|
||||
m_back_buffer = new Sample[2048];
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ private:
|
|||
bool m_delay_enabled { false };
|
||||
bool m_release_enabled { false };
|
||||
|
||||
bool keys[256];
|
||||
bool keys[256] { false };
|
||||
|
||||
PianoKey m_piano_key_under_mouse { K_None };
|
||||
bool m_mouse_pressed { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue