Fix some warnings (looking like potential bugs) detected by cppcheck, (a few from a patch from Julien Nabet <[email protected]>), remove not used vars and a few coding style fixes.

This commit is contained in:
jean-pierre charras
2015-12-27 13:16:46 +01:00
parent 415c72262a
commit c4ea4dc0df
8 changed files with 14 additions and 27 deletions
+1 -1
View File
@@ -882,7 +882,7 @@ SCH_SHEET* SCH_SHEET_LIST::FindSheetByName( const wxString& aSheetName )
for( int i = 0; i < m_count; i++ )
{
sheet = m_list[i].FindSheetByName( aSheetName );
SCH_SHEET* sheet = m_list[i].FindSheetByName( aSheetName );
if( sheet )
return sheet;