From 05128b9a334ad88155f6f72d14e1807874a65415 Mon Sep 17 00:00:00 2001 From: Johannes Lorenz Date: Wed, 12 Dec 2018 17:10:54 +0100 Subject: [PATCH] Fix error in SetupDialog This adds constants into a lambda capture list. Unnecessary, says the C++14 standard, but this fixes the MSVC C++11 error. --- src/gui/SetupDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/SetupDialog.cpp b/src/gui/SetupDialog.cpp index 13392439fd8..678f5bff9f4 100644 --- a/src/gui/SetupDialog.cpp +++ b/src/gui/SetupDialog.cpp @@ -203,7 +203,7 @@ SetupDialog::SetupDialog( ConfigTabs _tab_to_open ) : const int HeaderSize = 30; int labelNumber = 0; - auto addLedCheckBox = [&misc_tw, &labelNumber, this]( + auto addLedCheckBox = [&XDelta, &YDelta, &misc_tw, &labelNumber, this]( const char* ledText, bool initialState, const char* toggledSlot