Fix a typo and a Coverity warning

This commit is contained in:
jean-pierre charras 2023-09-30 18:17:09 +02:00
parent c2db20d745
commit 7bc2d69ab7
2 changed files with 4 additions and 3 deletions

View File

@ -126,10 +126,10 @@ CADSTAR_SCH_ARCHIVE_LOADER::loadLibPart( const CADSTAR_PART_ENTRY& aPart )
// Load the graphical symbol for this gate
std::unique_ptr<LIB_SYMBOL> kiSymDef( loadSymdef( symbolID )->Duplicate() );
if( sym.m_Pins.size() != kiSymDef->GetPinCount() )
if( (int)sym.m_Pins.size() != kiSymDef->GetPinCount() )
{
m_reporter->Report(
wxString::Format( _( "Inconsitent pin numbers in symbol %s compared to the one "
wxString::Format( _( "Inconsistent pin numbers in symbol %s compared to the one "
"defined in part %s. The part was not loaded." ),
generateLibName( sym.m_SymbolName, alternateName ),
aPart.m_Name ),

View File

@ -75,7 +75,8 @@ FOOTPRINT_CHOOSER_FRAME::FOOTPRINT_CHOOSER_FRAME( KIWAY* aKiway, wxWindow* aPare
FOOTPRINT_CHOOSER_FRAME_NAME ),
m_filterByPinCount( nullptr ),
m_filterByFPFilters( nullptr ),
m_pinCount( 0 )
m_pinCount( 0 ),
m_firstPaintEvent( true )
{
SetModal( true );