diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-09 14:06:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-10 10:09:58 +0200 |
commit | 9039ba799563ed87055f43c8717ad672e57c2d46 (patch) | |
tree | d85fce090d926349a9eff12c7edd34eb106896ae /forms | |
parent | ad2ccc2365f99adf6bbfbfde555bbd2146629210 (diff) |
loplugin:constantparam in forms
Change-Id: I5e2dce3a1fcdb0ce836b9297feb287852ebc7d17
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/inc/InterfaceContainer.hxx | 2 | ||||
-rw-r--r-- | forms/source/misc/InterfaceContainer.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
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<css::uno::XInterface> xElement(*i); OInterfaceMap::iterator j = m_aMap.begin(); |