summaryrefslogtreecommitdiff
path: root/framework/source/fwi
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-08-27 06:57:44 +0200
committerJulien Nabet <serval2412@yahoo.fr>2013-08-27 06:57:44 +0200
commit6a419ad8f23f9c3964309de42fefb652e37c6697 (patch)
treee2690a22cc487400316147eabb8970a117bbdd67 /framework/source/fwi
parentca1456d3c29483298a829be0f04decb5d894b585 (diff)
Bin intermediate iterator
Change-Id: I49e6cd7bc6e4db95163d0b0b8c81bb4330ead081
Diffstat (limited to 'framework/source/fwi')
-rw-r--r--framework/source/fwi/uielement/rootitemcontainer.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/framework/source/fwi/uielement/rootitemcontainer.cxx b/framework/source/fwi/uielement/rootitemcontainer.cxx
index 021b79f58f96..9091ce27788a 100644
--- a/framework/source/fwi/uielement/rootitemcontainer.cxx
+++ b/framework/source/fwi/uielement/rootitemcontainer.cxx
@@ -217,15 +217,13 @@ throw ( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetExcept
(OWeakObject *)this, 2 );
}
-void SAL_CALL RootItemContainer::removeByIndex( sal_Int32 Index )
+void SAL_CALL RootItemContainer::removeByIndex( sal_Int32 nIndex )
throw ( IndexOutOfBoundsException, WrappedTargetException, RuntimeException )
{
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();
- aIter += Index;
- m_aItemVector.erase( aIter );
+ m_aItemVector.erase(m_aItemVector.begin() + nIndex);
}
else
throw IndexOutOfBoundsException( OUString(), (OWeakObject *)this );