Fix a typo and a Coverity warning
This commit is contained in:
parent
c2db20d745
commit
7bc2d69ab7
|
@ -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 ),
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue