Fix build errors when casting wxString to const char * with some compilers.

This commit is contained in:
Wayne Stambaugh 2016-01-11 10:44:33 -05:00
parent 74b629fa19
commit ef87a0de54
1 changed files with 3 additions and 4 deletions

View File

@ -104,7 +104,7 @@ void KICAD_CURL::Init()
{ {
// Failure: error reporting UI was done via wxLogSysError(). // Failure: error reporting UI was done via wxLogSysError().
std::string msg = StrPrintf( "%s not wxDynamicLibrary::Load()ed", std::string msg = StrPrintf( "%s not wxDynamicLibrary::Load()ed",
canonicalName ); static_cast< const char *>( canonicalName.mb_str() ) );
THROW_IO_ERROR( msg ); THROW_IO_ERROR( msg );
} }
@ -120,9 +120,8 @@ void KICAD_CURL::Init()
// No further reporting required here. // No further reporting required here.
std::string msg = StrPrintf( "%s has no function %s", std::string msg = StrPrintf( "%s has no function %s",
static_cast<const char*>( canonicalName ), static_cast<const char*>( canonicalName.mb_str() ),
dyn_funcs[i].name dyn_funcs[i].name );
);
THROW_IO_ERROR( msg ); THROW_IO_ERROR( msg );
} }