From 359f05ad768809986a0e03351af528a98bcb1cf9 Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Thu, 10 Apr 2014 16:24:15 -0500 Subject: [PATCH] oops, wx2.8 compatibility fixes --- common/single_top.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/common/single_top.cpp b/common/single_top.cpp index daa69c6866..0248f5f119 100644 --- a/common/single_top.cpp +++ b/common/single_top.cpp @@ -34,6 +34,7 @@ */ +#include #include #include #include @@ -234,17 +235,18 @@ struct APP_SINGLE_TOP : public wxApp } catch( const std::exception& e ) { - wxLogError( "Unhandled exception class: %s what: %s", + wxLogError( wxT( "Unhandled exception class: %s what: %s" ), typeid(e).name(), e.what() ); } catch( const IO_ERROR& ioe ) { - wxLogError( "Unhandled exception class: %s what: %s", - typeid( ioe ).name(), TO_UTF8( ioe.errorText ) ); + wxLogError( wxT( "Unhandled exception class: %s what: %s" ), + GetChars( FROM_UTF8( typeid( ioe ).name() ) ), + GetChars( ioe.errorText ) ); } catch(...) { - wxLogError( "Unhandled exception of unknown type" ); + wxLogError( wxT( "Unhandled exception of unknown type" ) ); } return -1;