From 4d87443bf59c3242d58b56cc1583d73213ae1f2f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 29 Sep 2016 12:43:17 +0200 Subject: loplugin:constantparam Change-Id: Idbe8c8e6b3d44cacce296ec8c79b2b244281057c Reviewed-on: https://gerrit.libreoffice.org/29321 Tested-by: Jenkins Reviewed-by: Noel Grandin --- idl/inc/object.hxx | 2 +- idl/source/objects/object.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'idl') diff --git a/idl/inc/object.hxx b/idl/inc/object.hxx index 4c26597f7608..d6c39055973a 100644 --- a/idl/inc/object.hxx +++ b/idl/inc/object.hxx @@ -64,7 +64,7 @@ private: static sal_uInt16 WriteSlotParamArray( SvIdlDataBase & rBase, SvSlotElementList & rSlotList, SvStream & rOutStm ); - static sal_uInt16 WriteSlots( const OString& rShellName, sal_uInt16 nCount, + static sal_uInt16 WriteSlots( const OString& rShellName, SvSlotElementList & rSlotList, SvIdlDataBase & rBase, SvStream & rOutStm ); diff --git a/idl/source/objects/object.cxx b/idl/source/objects/object.cxx index bc64658800b1..efa7f17bef5b 100644 --- a/idl/source/objects/object.cxx +++ b/idl/source/objects/object.cxx @@ -150,7 +150,7 @@ sal_uInt16 SvMetaClass::WriteSlotParamArray( SvIdlDataBase & rBase, } sal_uInt16 SvMetaClass::WriteSlots( const OString& rShellName, - sal_uInt16 nCount, SvSlotElementList & rSlotList, + SvSlotElementList & rSlotList, SvIdlDataBase & rBase, SvStream & rOutStm ) { @@ -158,7 +158,7 @@ sal_uInt16 SvMetaClass::WriteSlots( const OString& rShellName, for ( size_t i = 0, n = rSlotList.size(); i < n; ++i ) { SvMetaSlot * pAttr = rSlotList[ i ]; - nSCount = nSCount + pAttr->WriteSlotMap( rShellName, nCount + nSCount, + nSCount = nSCount + pAttr->WriteSlotMap( rShellName, nSCount, rSlotList, i, rBase, rOutStm ); } @@ -320,7 +320,7 @@ void SvMetaClass::WriteSfx( SvIdlDataBase & rBase, SvStream & rOutStm ) rOutStm.WriteChar( '{' ) << endl; // write all attributes - WriteSlots( GetName(), 0, aSlotList, rBase, rOutStm ); + WriteSlots( GetName(), aSlotList, rBase, rOutStm ); if( nSlotCount ) Back2Delimiter( rOutStm ); else -- cgit