mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
Piano: Clean up code style with help from clang-tidy
Includes shadowed variables and if-else return.
This commit is contained in:
parent
401a21e4f4
commit
9f5f6b3868
4 changed files with 5 additions and 8 deletions
|
@ -94,8 +94,7 @@ void MainWidget::keydown_event(GUI::KeyEvent& event)
|
|||
// This is to stop held-down keys from creating multiple events.
|
||||
if (m_keys_pressed[event.key()])
|
||||
return;
|
||||
else
|
||||
m_keys_pressed[event.key()] = true;
|
||||
m_keys_pressed[event.key()] = true;
|
||||
|
||||
bool event_was_accepted = false;
|
||||
if (note_key_action(event.key(), DSP::Keyboard::Switch::On))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue