From dd6d7992d6f16133fafa7a617cf5fa0ba1ae37cc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 10 May 2017 19:19:10 +0200 Subject: loplugin:constantparam Change-Id: I67d74072c776c32a1f91df94c621efe180baf5dc Reviewed-on: https://gerrit.libreoffice.org/37481 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/sbx/sbxbase.cxx | 2 +- basic/source/sbx/sbxcoll.cxx | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'basic') diff --git a/basic/source/sbx/sbxbase.cxx b/basic/source/sbx/sbxbase.cxx index b165f3a8371d..2b4944aa3754 100644 --- a/basic/source/sbx/sbxbase.cxx +++ b/basic/source/sbx/sbxbase.cxx @@ -155,7 +155,7 @@ SbxBase* SbxBase::Create( sal_uInt16 nSbxId, sal_uInt32 nCreator ) case SBXID_ARRAY: return new SbxArray; case SBXID_DIMARRAY: return new SbxDimArray; case SBXID_OBJECT: return new SbxObject( "" ); - case SBXID_COLLECTION: return new SbxCollection( "" ); + case SBXID_COLLECTION: return new SbxCollection; case SBXID_FIXCOLLECTION: return new SbxStdCollection; case SBXID_METHOD: return new SbxMethod( "", SbxEMPTY ); diff --git a/basic/source/sbx/sbxcoll.cxx b/basic/source/sbx/sbxcoll.cxx index a624d0241cf7..690cbc2ec2bd 100644 --- a/basic/source/sbx/sbxcoll.cxx +++ b/basic/source/sbx/sbxcoll.cxx @@ -30,8 +30,8 @@ static OUString pRemove; static sal_uInt16 nCountHash = 0, nAddHash, nItemHash, nRemoveHash; -SbxCollection::SbxCollection( const OUString& rClass ) - : SbxObject( rClass ) +SbxCollection::SbxCollection() + : SbxObject( "" ) { if( !nCountHash ) { @@ -238,8 +238,7 @@ bool SbxCollection::LoadData( SvStream& rStrm, sal_uInt16 nVer ) SbxStdCollection::SbxStdCollection() - : SbxCollection( "" ), - bAddRemoveOk( true ) + : bAddRemoveOk( true ) {} SbxStdCollection::SbxStdCollection( const SbxStdCollection& r ) -- cgit