From eb38932d2648dbed6b86ba03a8626e3a7a828737 Mon Sep 17 00:00:00 2001 From: Marek Roszko <mark.roszko@gmail.com> Date: Sat, 13 Apr 2024 07:47:02 -0400 Subject: [PATCH] Fix capture lambda Fixes https://gitlab.com/kicad/code/kicad/-/issues/17757 --- include/api/api_handler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/api/api_handler.h b/include/api/api_handler.h index 3e640a3c40..69be95c9d2 100644 --- a/include/api/api_handler.h +++ b/include/api/api_handler.h @@ -98,7 +98,7 @@ protected: wxString::Format( "Duplicate API handler for type %s", typeName ) ); m_handlers[typeName] = - [this]( ApiRequest& aRequest ) -> API_RESULT + [this, &aHandler]( ApiRequest& aRequest ) -> API_RESULT { RequestType cmd; ApiResponse envelope;