Fix capture lambda
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17757
This commit is contained in:
parent
c05ae0b32e
commit
eb38932d26
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue