summaryrefslogtreecommitdiff
path: root/forms/source/misc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-09 14:06:03 +0200
committerNoel Grandin <noel@peralex.com>2016-03-10 10:09:58 +0200
commit9039ba799563ed87055f43c8717ad672e57c2d46 (patch)
treed85fce090d926349a9eff12c7edd34eb106896ae /forms/source/misc
parentad2ccc2365f99adf6bbfbfde555bbd2146629210 (diff)
loplugin:constantparam in forms
Change-Id: I5e2dce3a1fcdb0ce836b9297feb287852ebc7d17
Diffstat (limited to 'forms/source/misc')
-rw-r--r--forms/source/misc/InterfaceContainer.cxx6
1 files changed, 3 insertions, 3 deletions
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();