pcbnew: fixed a warning regarding unused captured variables
This commit is contained in:
parent
4526f40fe1
commit
a695c995c7
|
@ -133,7 +133,7 @@ void LAYER_WIDGET::OnRightDownLayer( wxMouseEvent& aEvent, COLOR_SWATCH* aColorS
|
||||||
|
|
||||||
OnLayerRightClick( menu );
|
OnLayerRightClick( menu );
|
||||||
|
|
||||||
menu.Bind( wxEVT_COMMAND_MENU_SELECTED, [this, aColorSwatch]( wxCommandEvent& event ) {
|
menu.Bind( wxEVT_COMMAND_MENU_SELECTED, [aColorSwatch]( wxCommandEvent& event ) {
|
||||||
if ( event.GetId() == ID_CHANGE_LAYER_COLOR ) {
|
if ( event.GetId() == ID_CHANGE_LAYER_COLOR ) {
|
||||||
aColorSwatch->GetNewSwatchColor();
|
aColorSwatch->GetNewSwatchColor();
|
||||||
} else {
|
} else {
|
||||||
|
@ -182,7 +182,7 @@ void LAYER_WIDGET::OnRightDownRender( wxMouseEvent& aEvent, COLOR_SWATCH* aColor
|
||||||
_( "Change Render Color for " ) + aRenderName,
|
_( "Change Render Color for " ) + aRenderName,
|
||||||
KiBitmap( setcolor_board_body_xpm ) );
|
KiBitmap( setcolor_board_body_xpm ) );
|
||||||
|
|
||||||
menu.Bind( wxEVT_COMMAND_MENU_SELECTED, [this, aColorSwatch]( wxCommandEvent& event ) {
|
menu.Bind( wxEVT_COMMAND_MENU_SELECTED, [aColorSwatch]( wxCommandEvent& event ) {
|
||||||
if ( event.GetId() == ID_CHANGE_RENDER_COLOR ) {
|
if ( event.GetId() == ID_CHANGE_RENDER_COLOR ) {
|
||||||
aColorSwatch->GetNewSwatchColor();
|
aColorSwatch->GetNewSwatchColor();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue