Explicitly cast wxString to std::string when throwing std::exception
This commit is contained in:
parent
3f68af177a
commit
2e00169ae7
|
@ -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…
Reference in New Issue