diff --git a/eeschema/component_references_lister.cpp b/eeschema/component_references_lister.cpp index 9bf3427270..ec3e378541 100644 --- a/eeschema/component_references_lister.cpp +++ b/eeschema/component_references_lister.cpp @@ -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 ); diff --git a/eeschema/dialogs/dialog_build_BOM.cpp b/eeschema/dialogs/dialog_build_BOM.cpp index 253b507318..0209fda40f 100644 --- a/eeschema/dialogs/dialog_build_BOM.cpp +++ b/eeschema/dialogs/dialog_build_BOM.cpp @@ -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(); diff --git a/eeschema/netlist.h b/eeschema/netlist.h index 463c012d42..cac43913c2 100644 --- a/eeschema/netlist.h +++ b/eeschema/netlist.h @@ -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