mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00: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
26 changed files with 60 additions and 55 deletions
|
@ -37,8 +37,8 @@
|
|||
#include <LibGUI/MessageBox.h>
|
||||
#include <LibGUI/StackWidget.h>
|
||||
#include <LibGUI/Window.h>
|
||||
#include <LibGfx/Font.h>
|
||||
#include <LibGfx/Bitmap.h>
|
||||
#include <LibGfx/Font.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
@ -249,7 +249,7 @@ int main(int argc, char** argv)
|
|||
if (first)
|
||||
menu_option->set_checked(true);
|
||||
|
||||
menu_option->on_click = [content = content.ptr(), &stack](auto&) {
|
||||
menu_option->on_click = [content = content.ptr(), &stack] {
|
||||
stack->set_active_widget(content);
|
||||
content->invalidate_layout();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue