Browse Source

Explicitly cast wxString to std::string when throwing std::exception

pull/5/merge
Maciej Suminski 8 years ago
parent
commit
2e00169ae7
  1. 2
      include/eagle_parser.h

2
include/eagle_parser.h

@ -73,7 +73,7 @@ struct XML_PARSER_ERROR : std::runtime_error
* @param aMessage is an explanatory error message.
*/
XML_PARSER_ERROR( const wxString& aMessage ) noexcept :
std::runtime_error( "XML parser failed - " + aMessage )
std::runtime_error( "XML parser failed - " + aMessage.ToStdString() )
{}
};

Loading…
Cancel
Save