Fix compiler warnings introduced in 3430.

This commit is contained in:
Marco Mattila 2012-02-23 14:54:54 +02:00
parent 39ba360861
commit 165cbf1149
3 changed files with 9 additions and 3 deletions

View File

@ -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 );

View File

@ -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();

View File

@ -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