Fix capture lambda

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17757
This commit is contained in:
Marek Roszko 2024-04-13 07:47:02 -04:00
parent c05ae0b32e
commit eb38932d26
1 changed files with 1 additions and 1 deletions

View File

@ -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;