Get rid of extraneous char conversion.

This commit is contained in:
Jeff Young 2020-08-05 22:23:07 +01:00
parent 4a79d1be56
commit dd0f33bcbb
1 changed files with 6 additions and 5 deletions

View File

@ -196,9 +196,10 @@ void FP_LIB_TABLE::Parse( LIB_TABLE_LEXER* in )
{
delete tmp; // The table did not take ownership of the row.
wxString msg = wxString::Format(
_( "Duplicate library nickname \"%s\" found in footprint library "
"table file line %d" ), GetChars( nickname ), lineNum );
wxString msg = wxString::Format( _( "Duplicate library nickname \"%s\" found in "
"footprint library table file line %d" ),
nickname,
lineNum );
if( !errMsg.IsEmpty() )
errMsg << '\n';
@ -290,7 +291,7 @@ const FP_LIB_TABLE_ROW* FP_LIB_TABLE::FindRow( const wxString& aNickname )
{
wxString msg = wxString::Format(
_( "fp-lib-table files contain no library with nickname \"%s\"" ),
GetChars( aNickname ) );
aNickname );
THROW_IO_ERROR( msg );
}
@ -479,7 +480,7 @@ bool FP_LIB_TABLE::LoadGlobalTable( FP_LIB_TABLE& aTable )
if( !fn.DirExists() && !fn.Mkdir( 0x777, wxPATH_MKDIR_FULL ) )
{
THROW_IO_ERROR( wxString::Format( _( "Cannot create global library table path \"%s\"." ),
GetChars( fn.GetPath() ) ) );
fn.GetPath() ) );
}
// Attempt to copy the default global file table from the KiCad