From 9039ba799563ed87055f43c8717ad672e57c2d46 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 9 Mar 2016 14:06:03 +0200 Subject: loplugin:constantparam in forms Change-Id: I5e2dce3a1fcdb0ce836b9297feb287852ebc7d17 --- forms/source/inc/InterfaceContainer.hxx | 2 +- forms/source/misc/InterfaceContainer.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'forms') diff --git a/forms/source/inc/InterfaceContainer.hxx b/forms/source/inc/InterfaceContainer.hxx index 9da889254e3e..63f3b3a84ab3 100644 --- a/forms/source/inc/InterfaceContainer.hxx +++ b/forms/source/inc/InterfaceContainer.hxx @@ -184,7 +184,7 @@ public: protected: // helper virtual void SAL_CALL disposing(); - void removeElementsNoEvents(sal_Int32 nIndex); + void removeElementsNoEvents(); /** to be overridden if elements which are to be inserted into the container shall be checked diff --git a/forms/source/misc/InterfaceContainer.cxx b/forms/source/misc/InterfaceContainer.cxx index f78fa967b5a6..fc04dc5d26b7 100644 --- a/forms/source/misc/InterfaceContainer.cxx +++ b/forms/source/misc/InterfaceContainer.cxx @@ -565,7 +565,7 @@ void SAL_CALL OInterfaceContainer::read( const Reference< XObjectInputStream >& { // Clear the map while (!m_aItems.empty()) - removeElementsNoEvents(0); + removeElementsNoEvents(); // Rethrow the exception throw; @@ -890,9 +890,9 @@ void OInterfaceContainer::implInsert(sal_Int32 _nIndex, const Reference< XProper } -void OInterfaceContainer::removeElementsNoEvents(sal_Int32 nIndex) +void OInterfaceContainer::removeElementsNoEvents() { - OInterfaceArray::iterator i = m_aItems.begin() + nIndex; + OInterfaceArray::iterator i = m_aItems.begin(); css::uno::Reference xElement(*i); OInterfaceMap::iterator j = m_aMap.begin(); -- cgit