diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-17 09:45:22 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-17 09:18:40 +0000 |
commit | 07da25064f75cdf7163669f9bf860a9ee2f8b33c (patch) | |
tree | 85f4427a9e2832b4522f53b8c62a4a837b6759d9 /include | |
parent | 16fc620a2206292ed27d2298bc2fa60fc3e718a8 (diff) |
loplugin:constantparam in svl
Change-Id: If23e43beb401047825641817e09d7fdeb904f9d9
Reviewed-on: https://gerrit.libreoffice.org/23317
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/filerec.hxx | 19 | ||||
-rw-r--r-- | include/svl/itempool.hxx | 1 | ||||
-rw-r--r-- | include/svl/itemprop.hxx | 4 | ||||
-rw-r--r-- | include/svl/poolcach.hxx | 2 |
4 files changed, 10 insertions, 16 deletions
diff --git a/include/svl/filerec.hxx b/include/svl/filerec.hxx index 107dd61ceb1f..6581610fa472 100644 --- a/include/svl/filerec.hxx +++ b/include/svl/filerec.hxx @@ -236,11 +236,11 @@ protected: , _nPreTag(0) { } - void Construct_Impl( SvStream *pStream, sal_uInt8 nTag ) + void Construct_Impl( SvStream *pStream ) { _pStream = pStream; _bSkipped = false; - _nPreTag = nTag; + _nPreTag = SFX_REC_PRETAG_EXT; } inline bool SetHeader_Impl( sal_uInt32 nHeader ); @@ -319,8 +319,7 @@ protected: } void Construct_Impl( SvStream *pStream ) { - SfxMiniRecordReader::Construct_Impl( - pStream, SFX_REC_PRETAG_EXT ); + SfxMiniRecordReader::Construct_Impl( pStream ); } bool FindHeader_Impl( sal_uInt16 nTypes, sal_uInt16 nTag ); }; @@ -444,8 +443,7 @@ protected: public: SfxMultiVarRecordWriter( SvStream *pStream, - sal_uInt16 nRecordTag, - sal_uInt8 nRecordVer ); + sal_uInt16 nRecordTag ); virtual ~SfxMultiVarRecordWriter(); void NewContent(); @@ -484,8 +482,7 @@ class SVL_DLLPUBLIC SfxMultiMixRecordWriter: public SfxMultiVarRecordWriter { public: inline SfxMultiMixRecordWriter( SvStream *pStream, - sal_uInt16 nRecordTag, - sal_uInt8 nRecordVer ); + sal_uInt16 nRecordTag ); void NewContent( sal_uInt16 nTag, sal_uInt8 nVersion ); }; @@ -627,12 +624,10 @@ inline SfxMultiFixRecordWriter::~SfxMultiFixRecordWriter() * * @param pStream target stream in which the record will be created * @param nRecordTag tag for the total record - * @param nRecordVer version for the total record */ inline SfxMultiMixRecordWriter::SfxMultiMixRecordWriter( SvStream* pStream, - sal_uInt16 nRecordTag, - sal_uInt8 nRecordVer ) -: SfxMultiVarRecordWriter( SFX_REC_TYPE_MIXTAGS, pStream, nRecordTag, nRecordVer ) + sal_uInt16 nRecordTag ) +: SfxMultiVarRecordWriter( SFX_REC_TYPE_MIXTAGS, pStream, nRecordTag, 0 ) { } diff --git a/include/svl/itempool.hxx b/include/svl/itempool.hxx index 2ca544d45808..f3ef335d3aa2 100644 --- a/include/svl/itempool.hxx +++ b/include/svl/itempool.hxx @@ -151,7 +151,6 @@ public: const SfxPoolItem& GetDefaultItem( sal_uInt16 nWhich ) const; const SfxPoolItem* LoadItem( SvStream &rStream, - bool bDirect = false, const SfxItemPool *pRefPool = nullptr ); bool StoreItem( SvStream &rStream, const SfxPoolItem &rItem, diff --git a/include/svl/itemprop.hxx b/include/svl/itemprop.hxx index 1c8923f4cee1..f9f332b816d5 100644 --- a/include/svl/itemprop.hxx +++ b/include/svl/itemprop.hxx @@ -57,11 +57,11 @@ struct SfxItemPropertySimpleEntry } SfxItemPropertySimpleEntry(sal_uInt16 _nWID, css::uno::Type const & _rType, - long _nFlags, sal_uInt8 _nMemberId) + long _nFlags) : nWID( _nWID ) , aType( _rType ) , nFlags( _nFlags ) - , nMemberId( _nMemberId ) + , nMemberId( 0 ) { } diff --git a/include/svl/poolcach.hxx b/include/svl/poolcach.hxx index df2fce746fe5..6c55fae31b2c 100644 --- a/include/svl/poolcach.hxx +++ b/include/svl/poolcach.hxx @@ -50,7 +50,7 @@ public: const SfxItemSet *pPutSet ); ~SfxItemPoolCache(); - const SfxSetItem& ApplyTo( const SfxSetItem& rSetItem, bool bNew = false ); + const SfxSetItem& ApplyTo( const SfxSetItem& rSetItem ); }; |