Coverity warning fixes.

This commit is contained in:
Wayne Stambaugh
2023-10-30 09:16:24 -04:00
parent 7959c841fd
commit 6183a1e4de
5 changed files with 22 additions and 6 deletions
+1 -1
View File
@@ -942,7 +942,7 @@ void FIELDS_EDITOR_GRID_DATA_MODEL::RemoveSymbol( const SCH_SYMBOL& aSymbol )
// Remove all refs that match this symbol using remove_if
m_symbolsList.erase( std::remove_if( m_symbolsList.begin(), m_symbolsList.end(),
[aSymbol]( const SCH_REFERENCE& ref ) -> bool
[&aSymbol]( const SCH_REFERENCE& ref ) -> bool
{
return ref.GetSymbol()->m_Uuid == aSymbol.m_Uuid;
} ),