mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-12 10:40:39 +09:00
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.
This commit is contained in:
parent
b1d35248e4
commit
a26b63a958
Notes:
sideshowbarker
2024-07-19 08:55:10 +09:00
Author: https://github.com/awesomekling
Commit: a26b63a958
26 changed files with 60 additions and 55 deletions
|
@ -131,7 +131,7 @@ void MessageBox::build()
|
|||
button->set_size_policy(SizePolicy::Fill, SizePolicy::Fixed);
|
||||
button->set_preferred_size(0, 20);
|
||||
button->set_text(label);
|
||||
button->on_click = [this, label, result](auto&) {
|
||||
button->on_click = [this, label, result] {
|
||||
dbg() << "GUI::MessageBox: '" << label << "' button clicked";
|
||||
done(result);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue