Fixed style warnings
This commit is contained in:
parent
109e40c3a6
commit
c006a4f26e
|
@ -198,7 +198,7 @@ bool GERBVIEW_FRAME::LoadGerberFiles( const wxString& aFullFileName )
|
|||
bool success = LoadListOfGerberAndDrillFiles( currentPath, filenamesList );
|
||||
|
||||
// Auto zoom is only applied if there is only one file loaded
|
||||
if ( isFirstFile )
|
||||
if( isFirstFile )
|
||||
{
|
||||
Zoom_Automatique( false );
|
||||
}
|
||||
|
|
|
@ -72,7 +72,10 @@ GERBER_FILE_IMAGE* GERBER_FILE_IMAGE_LIST::GetGbrImage( int aIdx )
|
|||
|
||||
unsigned GERBER_FILE_IMAGE_LIST::GetLoadedImageCount()
|
||||
{
|
||||
auto notNull = []( GERBER_FILE_IMAGE* image ){ return image != nullptr; };
|
||||
auto notNull = []( GERBER_FILE_IMAGE* image )
|
||||
{
|
||||
return image != nullptr;
|
||||
};
|
||||
return std::count_if( m_GERBER_List.begin(), m_GERBER_List.end(), notNull );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue