Skip to content

Commit

Permalink
Fix error in SetupDialog
Browse files Browse the repository at this point in the history
This adds constants into a lambda capture list. Unnecessary, says the
C++14 standard, but this fixes the MSVC C++11 error.
  • Loading branch information
JohannesLorenz committed Dec 12, 2018
1 parent cf3d795 commit 05128b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/SetupDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 05128b9

Please sign in to comment.