WindowServer+LibGUI+LibHTML: Fix build with -std=c++2a

This commit is contained in:
Andreas Kling 2020-02-19 11:42:33 +01:00
parent ca4d4cac45
commit ef38c49619
Notes: sideshowbarker 2024-07-19 09:13:34 +09:00
3 changed files with 3 additions and 3 deletions

View file

@ -129,7 +129,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 = [=](auto&) {
button->on_click = [this, label, result](auto&) {
dbg() << "GUI::MessageBox: '" << label << "' button clicked";
done(result);
};