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:
jean-pierre charras 2018-10-25 20:03:35 +02:00
parent 09831075a5
commit 256f1a26e6
1 changed files with 2 additions and 2 deletions

View File

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