explicit wx_str comparison

This commit is contained in:
Marek Roszko 2024-04-12 19:59:43 -04:00
parent 4a3018615b
commit d8343a97dd
1 changed files with 2 additions and 2 deletions

View File

@ -493,7 +493,7 @@ wxDataViewItem LIB_TREE_MODEL_ADAPTER::FindItem( const LIB_ID& aLibId )
{ {
for( std::unique_ptr<LIB_TREE_NODE>& lib: m_tree.m_Children ) for( std::unique_ptr<LIB_TREE_NODE>& lib: m_tree.m_Children )
{ {
if( lib->m_Name != aLibId.GetLibNickname() ) if( lib->m_Name != aLibId.GetLibNickname().wx_str() )
continue; continue;
// if part name is not specified, return the library node // if part name is not specified, return the library node
@ -502,7 +502,7 @@ wxDataViewItem LIB_TREE_MODEL_ADAPTER::FindItem( const LIB_ID& aLibId )
for( std::unique_ptr<LIB_TREE_NODE>& alias: lib->m_Children ) for( std::unique_ptr<LIB_TREE_NODE>& alias: lib->m_Children )
{ {
if( alias->m_Name == aLibId.GetLibItemName() ) if( alias->m_Name == aLibId.GetLibItemName().wx_str() )
return ToItem( alias.get() ); return ToItem( alias.get() );
} }