summaryrefslogtreecommitdiff
path: root/Userland/Applications/Piano/KeysWidget.h
diff options
context:
space:
mode:
authorMacDue <macdue@dueutil.tech>2022-12-06 20:27:44 +0000
committerAndreas Kling <kling@serenityos.org>2022-12-07 11:48:27 +0100
commit7be0b27dd3cd7185c1b8dc52747c50aad479bc6a (patch)
tree30d42673a64ebb4a6274760e0016f78d6fa91fca /Userland/Applications/Piano/KeysWidget.h
parentbbc149ebb935532c9382278ed98cf9fe8a616422 (diff)
downloadserenity-7be0b27dd3cd7185c1b8dc52747c50aad479bc6a.zip
Meta+Userland: Pass Gfx::IntPoint by value
This is just two ints or 8 bytes or the size of the reference on x86_64 or AArch64.
Diffstat (limited to 'Userland/Applications/Piano/KeysWidget.h')
-rw-r--r--Userland/Applications/Piano/KeysWidget.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/Piano/KeysWidget.h b/Userland/Applications/Piano/KeysWidget.h
index a90796f2f5..e6e256644b 100644
--- a/Userland/Applications/Piano/KeysWidget.h
+++ b/Userland/Applications/Piano/KeysWidget.h
@@ -31,7 +31,7 @@ private:
virtual void mouseup_event(GUI::MouseEvent&) override;
virtual void mousemove_event(GUI::MouseEvent&) override;
- int note_for_event_position(Gfx::IntPoint const&) const;
+ int note_for_event_position(Gfx::IntPoint) const;
void set_key(i8 key, DSP::Keyboard::Switch);