From 537f530c2b8c388bda28ca1bbd833eb039e7e211 Mon Sep 17 00:00:00 2001 From: Gregory A Lundberg Date: Fri, 24 Nov 2017 18:48:28 -0600 Subject: [PATCH] Fix compile errors Not sure where these came from. I'm assuming the changes to have CMake and SCons be equally strict. If so, I'm amazed this was all which popped up! --- src/gui/dialogs/title_screen.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gui/dialogs/title_screen.cpp b/src/gui/dialogs/title_screen.cpp index 6603a6f946b1..ac70bcea2bf1 100644 --- a/src/gui/dialogs/title_screen.cpp +++ b/src/gui/dialogs/title_screen.cpp @@ -135,8 +135,8 @@ REGISTER_DIALOG(title_screen) bool show_debug_clock_button = false; title_screen::title_screen(game_launcher& game) - : game_(game) - , debug_clock_() + : debug_clock_() + , game_(game) { set_restore(false); @@ -354,7 +354,7 @@ void title_screen::pre_show(window& win) // // Editor // - register_button(win, "editor", hotkey::TITLE_SCREEN__EDITOR, [this, &win]() { win.set_retval(MAP_EDITOR); }); + register_button(win, "editor", hotkey::TITLE_SCREEN__EDITOR, [&win]() { win.set_retval(MAP_EDITOR); }); // // Cores @@ -389,12 +389,12 @@ void title_screen::pre_show(window& win) // // Credits // - register_button(win, "credits", hotkey::TITLE_SCREEN__CREDITS, [this, &win]() { win.set_retval(SHOW_ABOUT); }); + register_button(win, "credits", hotkey::TITLE_SCREEN__CREDITS, [&win]() { win.set_retval(SHOW_ABOUT); }); // // Quit // - register_button(win, "quit", hotkey::HOTKEY_QUIT_TO_DESKTOP, [this, &win]() { win.set_retval(QUIT_GAME); }); + register_button(win, "quit", hotkey::HOTKEY_QUIT_TO_DESKTOP, [&win]() { win.set_retval(QUIT_GAME); }); // // Debug clock