summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-01 16:06:38 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-04-04 12:15:42 +0000
commit1e55aad7990a47a7d4353ec3365ca46b6c54a10c (patch)
treec630ad3242e04181000989d0b4f65e1f3e490d20
parent17b1852133427e6c0b4266ccb63e24980aff94f0 (diff)
loplugin:constantparam in svl
Change-Id: I6c336034a12fda493825b4a8388d3bde6bead910 Reviewed-on: https://gerrit.libreoffice.org/23729 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r--include/svl/filerec.hxx5
-rw-r--r--include/svl/imageitm.hxx2
-rw-r--r--include/svl/zformat.hxx3
-rw-r--r--svl/source/filerec/filerec.cxx5
-rw-r--r--svl/source/items/imageitm.cxx4
-rw-r--r--svl/source/numbers/zformat.cxx5
-rw-r--r--vcl/source/window/toolbox.cxx2
7 files changed, 11 insertions, 15 deletions
diff --git a/include/svl/filerec.hxx b/include/svl/filerec.hxx
index 6581610fa472..7088e378e9fb 100644
--- a/include/svl/filerec.hxx
+++ b/include/svl/filerec.hxx
@@ -436,8 +436,7 @@ protected:
SfxMultiVarRecordWriter( sal_uInt8 nRecordType,
SvStream *pStream,
- sal_uInt16 nRecordTag,
- sal_uInt8 nRecordVer );
+ sal_uInt16 nRecordTag );
void FlushContent_Impl();
@@ -627,7 +626,7 @@ inline SfxMultiFixRecordWriter::~SfxMultiFixRecordWriter()
*/
inline SfxMultiMixRecordWriter::SfxMultiMixRecordWriter( SvStream* pStream,
sal_uInt16 nRecordTag )
-: SfxMultiVarRecordWriter( SFX_REC_TYPE_MIXTAGS, pStream, nRecordTag, 0 )
+: SfxMultiVarRecordWriter( SFX_REC_TYPE_MIXTAGS, pStream, nRecordTag )
{
}
diff --git a/include/svl/imageitm.hxx b/include/svl/imageitm.hxx
index 570c7453a5d8..bfe972ed5442 100644
--- a/include/svl/imageitm.hxx
+++ b/include/svl/imageitm.hxx
@@ -29,7 +29,7 @@ class SVL_DLLPUBLIC SfxImageItem : public SfxInt16Item
SfxImageItem_Impl* pImp;
public:
static SfxPoolItem* CreateDefault();
- SfxImageItem( sal_uInt16 nWhich = 0, sal_uInt16 nImage = 0 );
+ SfxImageItem( sal_uInt16 nWhich = 0 );
SfxImageItem( const SfxImageItem& );
virtual ~SfxImageItem();
diff --git a/include/svl/zformat.hxx b/include/svl/zformat.hxx
index 2b3569e84c3e..0289e8edaa4c 100644
--- a/include/svl/zformat.hxx
+++ b/include/svl/zformat.hxx
@@ -167,8 +167,7 @@ public:
ImpSvNumberformatScan* pSc,
ImpSvNumberInputScan* pISc,
sal_Int32& nCheckPos,
- LanguageType& eLan,
- bool bStand = false );
+ LanguageType& eLan );
// Copy ctor
SvNumberformat( SvNumberformat& rFormat );
diff --git a/svl/source/filerec/filerec.cxx b/svl/source/filerec/filerec.cxx
index e1f9db79dbb7..4556d2c4c14e 100644
--- a/svl/source/filerec/filerec.cxx
+++ b/svl/source/filerec/filerec.cxx
@@ -339,9 +339,8 @@ sal_uInt32 SfxMultiFixRecordWriter::Close()
*/
SfxMultiVarRecordWriter::SfxMultiVarRecordWriter(sal_uInt8 nRecordType,
SvStream* pStream,
- sal_uInt16 nRecordTag,
- sal_uInt8 nRecordVer)
-: SfxMultiFixRecordWriter( nRecordType, pStream, nRecordTag, nRecordVer ),
+ sal_uInt16 nRecordTag)
+: SfxMultiFixRecordWriter( nRecordType, pStream, nRecordTag, 0 ),
_nContentVer( 0 )
{
}
diff --git a/svl/source/items/imageitm.cxx b/svl/source/items/imageitm.cxx
index e956460f9641..9d07db34a576 100644
--- a/svl/source/items/imageitm.cxx
+++ b/svl/source/items/imageitm.cxx
@@ -34,8 +34,8 @@ struct SfxImageItem_Impl
};
-SfxImageItem::SfxImageItem( sal_uInt16 which, sal_uInt16 nImage )
- : SfxInt16Item( which, nImage )
+SfxImageItem::SfxImageItem( sal_uInt16 which )
+ : SfxInt16Item( which, 0 )
{
pImp = new SfxImageItem_Impl;
pImp->nAngle = 0;
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 99b086bd4d59..8238315111c2 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -591,8 +591,7 @@ SvNumberformat::SvNumberformat(OUString& rString,
ImpSvNumberformatScan* pSc,
ImpSvNumberInputScan* pISc,
sal_Int32& nCheckPos,
- LanguageType& eLan,
- bool bStan)
+ LanguageType& eLan)
: rScan(*pSc)
, bAdditionalBuiltin( false )
, bStarFlag( false )
@@ -623,7 +622,7 @@ SvNumberformat::SvNumberformat(OUString& rString,
{
maLocale.meLanguage = eLan;
}
- bStandard = bStan;
+ bStandard = false;
bIsUsed = false;
fLimit1 = 0.0;
fLimit2 = 0.0;
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index d7ea498c6982..eb3b005fdfd7 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -4563,7 +4563,7 @@ void ToolBox::statusChanged( const css::frame::FeatureStateEvent& Event )
// Update image mirroring/rotation
if ( Event.FeatureURL.Complete == ".uno:ImageOrientation" )
{
- SfxImageItem aItem( 1, 0 );
+ SfxImageItem aItem( 1 );
aItem.PutValue( Event.State, 0 );
mbImagesMirrored = aItem.IsMirrored();