summaryrefslogtreecommitdiffstats
path: root/basic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-10 19:19:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-12 12:30:53 +0200
commitdd6d7992d6f16133fafa7a617cf5fa0ba1ae37cc (patch)
tree49da40c8dbfa15a9fde368e0a8b69a623f357eaf /basic
parenttdf#107238 VBA autofilter: list of strings (diff)
downloadcore-dd6d7992d6f16133fafa7a617cf5fa0ba1ae37cc.tar.gz
core-dd6d7992d6f16133fafa7a617cf5fa0ba1ae37cc.zip
loplugin:constantparam
Change-Id: I67d74072c776c32a1f91df94c621efe180baf5dc Reviewed-on: https://gerrit.libreoffice.org/37481 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxbase.cxx2
-rw-r--r--basic/source/sbx/sbxcoll.cxx7
2 files changed, 4 insertions, 5 deletions
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 )