1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:17:34 +00:00

Piano: Clean up code style with help from clang-tidy

Includes shadowed variables and if-else return.
This commit is contained in:
kleines Filmröllchen 2023-02-09 13:36:10 +01:00 committed by Andrew Kaster
parent 401a21e4f4
commit 9f5f6b3868
4 changed files with 5 additions and 8 deletions

View file

@ -23,8 +23,7 @@ int KeysWidget::mouse_note() const
{
if (m_mouse_down && m_mouse_note + m_keyboard->virtual_keyboard_octave_base() < note_count)
return m_mouse_note; // Can be -1.
else
return -1;
return -1;
}
void KeysWidget::set_key(i8 key, DSP::Keyboard::Switch switch_note)