Fix build with protobuf 30

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20300


(cherry picked from commit 5774338af2e22e1ff541ad9ab368e459e2a2add2)

Co-authored-by: Jon Evans <jon@craftyjon.com>
This commit is contained in:
Jon Evans 2025-03-11 17:33:47 -04:00
parent 3446dbbf27
commit b837dc1d3b

View File

@ -93,9 +93,9 @@ protected:
void registerHandler( HANDLER_RESULT<ResponseType> ( HandlerType::*aHandler )(
const HANDLER_CONTEXT<RequestType>& ) )
{
std::string typeName = RequestType().GetTypeName();
std::string typeName { RequestType().GetTypeName() };
wxASSERT_MSG( !m_handlers.count( typeName ),
wxASSERT_MSG( !m_handlers.contains( typeName ),
wxString::Format( "Duplicate API handler for type %s", typeName ) );
m_handlers[typeName] =