diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-08-27 06:32:16 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-08-27 06:32:16 +0200 |
commit | 932dbfd2d12f5526e4d60fc4f17085872e6b8648 (patch) | |
tree | 31f08c601234d72d72090bc97b59e91d365f3c8d /framework | |
parent | a2791f974587301839a1dc59f632013b756fab83 (diff) |
Bin intermediate iterator + rename parameter function
Change-Id: Ic1055af502918ee754673a6e3ad704c55ef09a36
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/fwi/uielement/itemcontainer.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/framework/source/fwi/uielement/itemcontainer.cxx b/framework/source/fwi/uielement/itemcontainer.cxx index 956b2778db96..2f9cce58a671 100644 --- a/framework/source/fwi/uielement/itemcontainer.cxx +++ b/framework/source/fwi/uielement/itemcontainer.cxx @@ -200,15 +200,13 @@ throw ( IllegalArgumentException, IndexOutOfBoundsException, WrappedTargetExcept (OWeakObject *)this, 2 ); } -void SAL_CALL ItemContainer::removeByIndex( sal_Int32 Index ) +void SAL_CALL ItemContainer::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 ); |