diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-14 22:10:44 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-14 22:10:44 +0200 |
commit | e83390387c555d1778be08e921b49188ce845cd8 (patch) | |
tree | a45d1728f7d52685881e9b4ab98487bf18c54a08 /Applications/QuickShow/main.cpp | |
parent | b7bedab28a4ce16b722386852d39f0ad7d524d41 (diff) | |
download | serenity-e83390387c555d1778be08e921b49188ce845cd8.zip |
LibGUI: Simplify GCommonActions a bit
Use the same callback signature as GAction so we can just forward it
to GAction instead of chaining callbacks.
Diffstat (limited to 'Applications/QuickShow/main.cpp')
-rw-r--r-- | Applications/QuickShow/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/QuickShow/main.cpp b/Applications/QuickShow/main.cpp index 64c2b374d4..b8097d62e1 100644 --- a/Applications/QuickShow/main.cpp +++ b/Applications/QuickShow/main.cpp @@ -16,7 +16,7 @@ int main(int argc, char** argv) auto menubar = make<GMenuBar>(); auto app_menu = make<GMenu>("QuickShow"); - app_menu->add_action(GCommonActions::make_quit_action([] { + app_menu->add_action(GCommonActions::make_quit_action([](auto&) { GApplication::the().quit(0); return; })); |