summaryrefslogtreecommitdiff
path: root/framework/source/fwe/helper/propertysetcontainer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/fwe/helper/propertysetcontainer.cxx')
-rw-r--r--framework/source/fwe/helper/propertysetcontainer.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/framework/source/fwe/helper/propertysetcontainer.cxx b/framework/source/fwe/helper/propertysetcontainer.cxx
index a93c14f4af2f..52df1deb5c46 100644
--- a/framework/source/fwe/helper/propertysetcontainer.cxx
+++ b/framework/source/fwe/helper/propertysetcontainer.cxx
@@ -109,16 +109,14 @@ void SAL_CALL PropertySetContainer::insertByIndex( sal_Int32 Index, const ::com:
throw IndexOutOfBoundsException( OUString(), (OWeakObject *)this );
}
-void SAL_CALL PropertySetContainer::removeByIndex( sal_Int32 Index )
+void SAL_CALL PropertySetContainer::removeByIndex( sal_Int32 nIndex )
throw ( IndexOutOfBoundsException, WrappedTargetException, RuntimeException )
{
ResetableGuard aGuard( m_aLock );
- if ( (sal_Int32)m_aPropertySetVector.size() > Index )
+ if ( (sal_Int32)m_aPropertySetVector.size() > nIndex )
{
- PropertySetVector::iterator aIter = m_aPropertySetVector.begin();
- aIter += Index;
- m_aPropertySetVector.erase( aIter );
+ m_aPropertySetVector.erase(m_aPropertySetVector.begin() + nIndex);
}
else
throw IndexOutOfBoundsException( OUString(), (OWeakObject *)this );