Explicit lambda capture

This commit is contained in:
Marek Roszko 2024-04-12 22:54:59 -04:00
parent e3777758d9
commit dbd98f1ce0
1 changed files with 1 additions and 1 deletions

View File

@ -2239,7 +2239,7 @@ void APPEARANCE_CONTROLS::rebuildObjects()
aSetting->ctl_opacity = slider; aSetting->ctl_opacity = slider;
auto opacitySliderHandler = auto opacitySliderHandler =
[=]( wxCommandEvent& aEvent ) [this, layer]( wxCommandEvent& aEvent )
{ {
wxSlider* ctrl = static_cast<wxSlider*>( aEvent.GetEventObject() ); wxSlider* ctrl = static_cast<wxSlider*>( aEvent.GetEventObject() );
int value = ctrl->GetValue(); int value = ctrl->GetValue();