Fix explicit wxstring build breakage

This commit is contained in:
Mark Roszko 2024-03-21 03:25:15 +00:00
parent 9947cc0359
commit 7b904545e9
2 changed files with 2 additions and 2 deletions

View File

@ -2055,7 +2055,7 @@ int SCH_SCREENS::ChangeSymbolLibNickname( const wxString& aFrom, const wxString&
{
SCH_SYMBOL* symbol = static_cast<SCH_SYMBOL*>( item );
if( wxString( symbol->GetLibId().GetLibNickname() ) != aFrom )
if( symbol->GetLibId().GetLibNickname().wx_str() != aFrom )
continue;
LIB_ID id = symbol->GetLibId();

View File

@ -1802,7 +1802,7 @@ void SCH_SYMBOL::Show( int nestLevel, std::ostream& os ) const
NestedSpace( nestLevel, os ) << '<' << GetClass().Lower().mb_str()
<< " ref=\"" << TO_UTF8( GetField( REFERENCE_FIELD )->GetName() )
<< '"' << " chipName=\""
<< wxString( GetLibId().Format() ) << '"' << m_pos
<< GetLibId().Format().wx_str() << '"' << m_pos
<< " layer=\"" << m_layer
<< '"' << ">\n";