summaryrefslogtreecommitdiff
path: root/Applications/Piano
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-03 17:02:38 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-03 17:02:38 +0100
commita26b63a9585631d39c97db5b5808aca351894da8 (patch)
tree28f4f48f4f7c8487fb2326e23d6b070ee6e785e6 /Applications/Piano
parentb1d35248e45a6c4e4e9b9a55aa5d8fa60e60c276 (diff)
downloadserenity-a26b63a9585631d39c97db5b5808aca351894da8.zip
LibGUI: Remove Button& parameter from Button::on_click hook
There was but a single user of this parameter and it's a bit tedious to write it out every time, so let's get rid of it.
Diffstat (limited to 'Applications/Piano')
-rw-r--r--Applications/Piano/SamplerWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Piano/SamplerWidget.cpp b/Applications/Piano/SamplerWidget.cpp
index 543cee8ebb..d4903878ca 100644
--- a/Applications/Piano/SamplerWidget.cpp
+++ b/Applications/Piano/SamplerWidget.cpp
@@ -107,7 +107,7 @@ SamplerWidget::SamplerWidget(AudioEngine& audio_engine)
m_open_button->set_preferred_size(24, 24);
m_open_button->set_focusable(false);
m_open_button->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/open.png"));
- m_open_button->on_click = [this](const auto&) {
+ m_open_button->on_click = [this] {
Optional<String> open_path = GUI::FilePicker::get_open_filepath();
if (!open_path.has_value())
return;