From a695c995c75596c63140d48eddd4fa25f99c1378 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 19 Apr 2018 14:42:53 +0200 Subject: [PATCH] pcbnew: fixed a warning regarding unused captured variables --- pcbnew/layer_widget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/layer_widget.cpp b/pcbnew/layer_widget.cpp index 7d62798371..27c116c2ed 100644 --- a/pcbnew/layer_widget.cpp +++ b/pcbnew/layer_widget.cpp @@ -133,7 +133,7 @@ void LAYER_WIDGET::OnRightDownLayer( wxMouseEvent& aEvent, COLOR_SWATCH* aColorS 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 ) { aColorSwatch->GetNewSwatchColor(); } else { @@ -182,7 +182,7 @@ void LAYER_WIDGET::OnRightDownRender( wxMouseEvent& aEvent, COLOR_SWATCH* aColor _( "Change Render Color for " ) + aRenderName, 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 ) { aColorSwatch->GetNewSwatchColor(); } else {