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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user