Fix compiler warnings introduced in 3430.
This commit is contained in:
parent
39ba360861
commit
165cbf1149
|
@ -42,7 +42,7 @@
|
|||
//#define USE_OLD_ALGO
|
||||
|
||||
|
||||
void SCH_REFERENCE_LIST::RemoveItem( int aIndex )
|
||||
void SCH_REFERENCE_LIST::RemoveItem( unsigned int aIndex )
|
||||
{
|
||||
if( aIndex < componentFlatList.size() )
|
||||
componentFlatList.erase( componentFlatList.begin() + aIndex );
|
||||
|
|
|
@ -855,7 +855,7 @@ int DIALOG_BUILD_BOM::PrintComponentsListByRef( FILE* f,
|
|||
int DIALOG_BUILD_BOM::PrintComponentsListByPart( FILE* aFile, SCH_REFERENCE_LIST& aList,
|
||||
bool aIncludeSubComponents )
|
||||
{
|
||||
int index = 0;
|
||||
unsigned int index = 0;
|
||||
while( index < aList.GetCount() )
|
||||
{
|
||||
SCH_COMPONENT *component = aList[index].GetComponent();
|
||||
|
|
|
@ -220,7 +220,13 @@ public:
|
|||
componentFlatList.push_back( aItem );
|
||||
}
|
||||
|
||||
void RemoveItem( int aIndex );
|
||||
/**
|
||||
* Function RemoveItem
|
||||
* removes an item from the list of references.
|
||||
*
|
||||
* @param aIndex is the index of the item to be removed.
|
||||
*/
|
||||
void RemoveItem( unsigned int aIndex );
|
||||
|
||||
/**
|
||||
* Function RemoveSubComponentsFromList
|
||||
|
|
Loading…
Reference in New Issue