Fix overload compile warning
This commit is contained in:
parent
7558c71aca
commit
72238e260a
|
@ -731,7 +731,7 @@ bool SCH_COMPONENT::IsReferenceStringValid( const wxString& aReferenceString )
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
|
|
||||||
// Try to unannotate this reference
|
// Try to unannotate this reference
|
||||||
while( !text.IsEmpty() && ( text.Last() == '?' || isdigit( text.Last() ) ) )
|
while( !text.IsEmpty() && ( text.Last() == '?' || std::isdigit( text.Last().GetValue() ) ) )
|
||||||
text.RemoveLast();
|
text.RemoveLast();
|
||||||
|
|
||||||
if( text.IsEmpty() )
|
if( text.IsEmpty() )
|
||||||
|
@ -794,7 +794,7 @@ void SCH_COMPONENT::SetRef( const SCH_SHEET_PATH* sheet, const wxString& ref )
|
||||||
|
|
||||||
if( IsReferenceStringValid( prefix ) )
|
if( IsReferenceStringValid( prefix ) )
|
||||||
{
|
{
|
||||||
while( prefix.Last() == '?' || isdigit( prefix.Last() ) )
|
while( prefix.Last() == '?' || std::isdigit( prefix.Last().GetValue() ) )
|
||||||
prefix.RemoveLast();
|
prefix.RemoveLast();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue