Fix a compil issue with gcc 4.8.4 compiler
On Ubuntu 14.04 the compiler does not like using const iterators instead of iterators.
This commit is contained in:
parent
09831075a5
commit
256f1a26e6
|
@ -73,7 +73,7 @@ public:
|
|||
|
||||
virtual void Add( EDA_ITEM* aItem )
|
||||
{
|
||||
CITER i = std::lower_bound( m_items.begin(), m_items.end(), aItem );
|
||||
ITER i = std::lower_bound( m_items.begin(), m_items.end(), aItem );
|
||||
|
||||
if( i == m_items.end() || *i > aItem )
|
||||
m_items.insert( i, aItem );
|
||||
|
@ -81,7 +81,7 @@ public:
|
|||
|
||||
virtual void Remove( EDA_ITEM *aItem )
|
||||
{
|
||||
CITER i = std::lower_bound( m_items.begin(), m_items.end(), aItem );
|
||||
ITER i = std::lower_bound( m_items.begin(), m_items.end(), aItem );
|
||||
|
||||
if( !( i == m_items.end() || *i > aItem ) )
|
||||
m_items.erase( i );
|
||||
|
|
Loading…
Reference in New Issue