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

This commit is contained in:
Maciej Suminski 2017-12-17 20:16:23 +01:00
parent 3f68af177a
commit 2e00169ae7
1 changed files with 1 additions and 1 deletions

View File

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