diff --git a/include/api/api_handler.h b/include/api/api_handler.h index 69be95c9d2..906a88f4cf 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, &aHandler]( ApiRequest& aRequest ) -> API_RESULT + [this, aHandler]( ApiRequest& aRequest ) -> API_RESULT { RequestType cmd; ApiResponse envelope;