Fix minor compil warnings

This commit is contained in:
jean-pierre charras 2023-04-24 19:58:20 +02:00
parent e2e901de1d
commit b9ed84b7db
2 changed files with 4 additions and 4 deletions

View File

@ -292,7 +292,7 @@ void ERC_TREE_MODEL::GetValue( wxVariant& aVariant, wxDataViewItem const& aItem,
wxString msg;
auto getItemDesc =
[&]( EDA_ITEM* aItem, SCH_SHEET_PATH& aSheet )
[&]( EDA_ITEM* aCurrItem, SCH_SHEET_PATH& aSheet )
{
SCH_SHEET_PATH curSheet = schEditFrame->GetCurrentSheet();
wxString desc;
@ -300,12 +300,12 @@ void ERC_TREE_MODEL::GetValue( wxVariant& aVariant, wxDataViewItem const& aItem,
if( aSheet != curSheet )
{
aSheet.UpdateAllScreenReferences();
desc = aItem->GetItemDescription( m_editFrame );
desc = aCurrItem->GetItemDescription( m_editFrame );
curSheet.UpdateAllScreenReferences();
}
else
{
desc = aItem->GetItemDescription( m_editFrame );
desc = aCurrItem->GetItemDescription( m_editFrame );
}
return desc;

View File

@ -231,7 +231,7 @@ public:
return m_tag.pos;
}
int Net() const
int Net() const override
{
return m_tag.net;
}