mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-02 22:29:10 +00:00
Piano: Initialize keys[] at member definition
This commit is contained in:
parent
aeefcd6ddb
commit
27ebf3ff32
Notes:
sideshowbarker
2024-07-19 10:41:10 +09:00
Author: https://github.com/willmcpherson2
Commit: 27ebf3ff32
Pull-request: https://github.com/SerenityOS/serenity/pull/915
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