diff --git a/common/fp_lib_table.cpp b/common/fp_lib_table.cpp index a451c65870..7cb12fe2da 100644 --- a/common/fp_lib_table.cpp +++ b/common/fp_lib_table.cpp @@ -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