mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Cleanup.
This commit is contained in:
parent
0d34db67cd
commit
d3b293ee42
@ -341,35 +341,35 @@ bool DSNLEXER::IsNumber( int aTok )
|
||||
|
||||
void DSNLEXER::Expecting( int aTok ) const
|
||||
{
|
||||
wxString errText = wxString::Format( _( "Expecting %s" ), GetTokenString( aTok ) );
|
||||
wxString errText = wxString::Format( _( "Expecting '%s'" ), GetTokenString( aTok ) );
|
||||
THROW_PARSE_ERROR( errText, CurSource(), CurLine(), CurLineNumber(), CurOffset() );
|
||||
}
|
||||
|
||||
|
||||
void DSNLEXER::Expecting( const char* text ) const
|
||||
{
|
||||
wxString errText = wxString::Format( _( "Expecting '%s'" ), wxString::FromUTF8( text ) );
|
||||
wxString errText = wxString::Format( _( "Expecting %s" ), wxString::FromUTF8( text ) );
|
||||
THROW_PARSE_ERROR( errText, CurSource(), CurLine(), CurLineNumber(), CurOffset() );
|
||||
}
|
||||
|
||||
|
||||
void DSNLEXER::Unexpected( int aTok ) const
|
||||
{
|
||||
wxString errText = wxString::Format( _( "Unexpected %s" ), GetTokenString( aTok ) );
|
||||
wxString errText = wxString::Format( _( "Unexpected '%s'" ), GetTokenString( aTok ) );
|
||||
THROW_PARSE_ERROR( errText, CurSource(), CurLine(), CurLineNumber(), CurOffset() );
|
||||
}
|
||||
|
||||
|
||||
void DSNLEXER::Duplicate( int aTok )
|
||||
{
|
||||
wxString errText = wxString::Format( _("%s is a duplicate"), GetTokenString( aTok ).GetData() );
|
||||
wxString errText = wxString::Format( _( "%s is a duplicate" ), GetTokenString( aTok ).GetData() );
|
||||
THROW_PARSE_ERROR( errText, CurSource(), CurLine(), CurLineNumber(), CurOffset() );
|
||||
}
|
||||
|
||||
|
||||
void DSNLEXER::Unexpected( const char* text ) const
|
||||
{
|
||||
wxString errText = wxString::Format( _( "Unexpected '%s'" ), wxString::FromUTF8( text ) );
|
||||
wxString errText = wxString::Format( _( "Unexpected %s" ), wxString::FromUTF8( text ) );
|
||||
THROW_PARSE_ERROR( errText, CurSource(), CurLine(), CurLineNumber(), CurOffset() );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user