Commit 165cbf11 authored by Marco Mattila's avatar Marco Mattila

Fix compiler warnings introduced in 3430.

parent 39ba3608
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment