Explicit lambda capture
This commit is contained in:
parent
e3777758d9
commit
dbd98f1ce0
|
@ -2239,7 +2239,7 @@ void APPEARANCE_CONTROLS::rebuildObjects()
|
|||
aSetting->ctl_opacity = slider;
|
||||
|
||||
auto opacitySliderHandler =
|
||||
[=]( wxCommandEvent& aEvent )
|
||||
[this, layer]( wxCommandEvent& aEvent )
|
||||
{
|
||||
wxSlider* ctrl = static_cast<wxSlider*>( aEvent.GetEventObject() );
|
||||
int value = ctrl->GetValue();
|
||||
|
|
Loading…
Reference in New Issue