Bin intermediate iterator
Change-Id: I49e6cd7bc6e4db95163d0b0b8c81bb4330ead081
This commit is contained in:
@@ -217,15 +217,13 @@ throw ( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetExcept
|
|||||||
(OWeakObject *)this, 2 );
|
(OWeakObject *)this, 2 );
|
||||||
}
|
}
|
||||||
|
|
||||||
void SAL_CALL RootItemContainer::removeByIndex( sal_Int32 Index )
|
void SAL_CALL RootItemContainer::removeByIndex( sal_Int32 nIndex )
|
||||||
throw ( IndexOutOfBoundsException, WrappedTargetException, RuntimeException )
|
throw ( IndexOutOfBoundsException, WrappedTargetException, RuntimeException )
|
||||||
{
|
{
|
||||||
ShareGuard aLock( m_aShareMutex );
|
ShareGuard aLock( m_aShareMutex );
|
||||||
if ( (sal_Int32)m_aItemVector.size() > Index )
|
if ( (sal_Int32)m_aItemVector.size() > nIndex )
|
||||||
{
|
{
|
||||||
std::vector< Sequence< PropertyValue > >::iterator aIter = m_aItemVector.begin();
|
m_aItemVector.erase(m_aItemVector.begin() + nIndex);
|
||||||
aIter += Index;
|
|
||||||
m_aItemVector.erase( aIter );
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw IndexOutOfBoundsException( OUString(), (OWeakObject *)this );
|
throw IndexOutOfBoundsException( OUString(), (OWeakObject *)this );
|
||||||
|
Reference in New Issue
Block a user