mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
Remove extra layer of parens.
This commit is contained in:
parent
90bfe2d94b
commit
3bdae40881
@ -2212,21 +2212,19 @@ void FOOTPRINT::CheckFootprintAttributes( const std::function<void( const wxStri
|
|||||||
{
|
{
|
||||||
wxString msg;
|
wxString msg;
|
||||||
|
|
||||||
if( likelyAttr == FP_THROUGH_HOLE )
|
switch( likelyAttr )
|
||||||
{
|
{
|
||||||
|
case FP_THROUGH_HOLE:
|
||||||
msg.Printf( _( "(expected 'Through hole'; actual '%s')" ), GetTypeName() );
|
msg.Printf( _( "(expected 'Through hole'; actual '%s')" ), GetTypeName() );
|
||||||
}
|
break;
|
||||||
else if( likelyAttr == FP_SMD )
|
case FP_SMD:
|
||||||
{
|
|
||||||
msg.Printf( _( "(expected 'SMD'; actual '%s')" ), GetTypeName() );
|
msg.Printf( _( "(expected 'SMD'; actual '%s')" ), GetTypeName() );
|
||||||
}
|
break;
|
||||||
else
|
default:
|
||||||
{
|
|
||||||
msg.Printf( _( "(expected 'Other'; actual '%s')" ), GetTypeName() );
|
msg.Printf( _( "(expected 'Other'; actual '%s')" ), GetTypeName() );
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
msg = wxT( "(" ) + msg + wxT( ")" );
|
|
||||||
|
|
||||||
(aErrorHandler)( msg );
|
(aErrorHandler)( msg );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user