summaryrefslogtreecommitdiff
path: root/Applications/Welcome
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/Welcome
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/Welcome')
-rw-r--r--Applications/Welcome/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/Welcome/main.cpp b/Applications/Welcome/main.cpp
index ea25ab057d..17d6369273 100644
--- a/Applications/Welcome/main.cpp
+++ b/Applications/Welcome/main.cpp
@@ -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();
};