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;