framework/source/fwi/uielement/rootitemcontainer.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
New commits: commit 6a419ad8f23f9c3964309de42fefb652e37c6697 Author: Julien Nabet <serval2...@yahoo.fr> Date: Tue Aug 27 06:57:44 2013 +0200 Bin intermediate iterator Change-Id: I49e6cd7bc6e4db95163d0b0b8c81bb4330ead081 diff --git a/framework/source/fwi/uielement/rootitemcontainer.cxx b/framework/source/fwi/uielement/rootitemcontainer.cxx index 021b79f..9091ce2 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 ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits