Fix build with protobuf 30

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20300
This commit is contained in:
Jon Evans
2025-03-11 17:33:17 -04:00
parent b7ef57a97d
commit 5774338af2
+2 -2
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] =