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.
This commit is contained in:
Johannes Lorenz
2018-12-12 17:10:54 +01:00
parent cf3d7950b1
commit 05128b9a33

View File

@@ -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