summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-29 12:43:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-30 06:57:26 +0000
commit4d87443bf59c3242d58b56cc1583d73213ae1f2f (patch)
treec1f74fc569506299100b5063f14c09e46035a943 /idl
parent8e812b87ff7f8c5bf2c6f8858646c55effd2eea3 (diff)
loplugin:constantparam
Change-Id: Idbe8c8e6b3d44cacce296ec8c79b2b244281057c Reviewed-on: https://gerrit.libreoffice.org/29321 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'idl')
-rw-r--r--idl/inc/object.hxx2
-rw-r--r--idl/source/objects/object.cxx6
2 files changed, 4 insertions, 4 deletions
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