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

Fix compiler warnings introduced in 3430.

parent 39ba3608
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 );
+1 −1
Original line number Diff line number Diff line
@@ -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();
+7 −1
Original line number Diff line number Diff line
@@ -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