diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-21 13:05:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-21 12:09:24 +0000 |
commit | 1617eef124e01ca3b3286e0ad5985c34dde7fadb (patch) | |
tree | 0f9471b483218d56b36aab03a175ce307aae6532 /include | |
parent | beb8cfcf32f855a0fb638caef4782d9d867e3102 (diff) |
loplugin:countusersofdefaultparams in include/sot..svl
Change-Id: Idb022a4a6fb950f1b259abbba57daed9401732d9
Reviewed-on: https://gerrit.libreoffice.org/31038
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/sot/stg.hxx | 22 | ||||
-rw-r--r-- | include/sot/storage.hxx | 2 | ||||
-rw-r--r-- | include/svl/cintitem.hxx | 8 | ||||
-rw-r--r-- | include/svl/custritm.hxx | 2 | ||||
-rw-r--r-- | include/svl/gridprinter.hxx | 2 | ||||
-rw-r--r-- | include/svl/int64item.hxx | 2 | ||||
-rw-r--r-- | include/svl/itempool.hxx | 4 | ||||
-rw-r--r-- | include/svl/metitem.hxx | 2 | ||||
-rw-r--r-- | include/svl/visitem.hxx | 2 | ||||
-rw-r--r-- | include/svl/zformat.hxx | 2 |
10 files changed, 27 insertions, 21 deletions
diff --git a/include/sot/stg.hxx b/include/sot/stg.hxx index 29a7d121f0c8..3a11b4e2298d 100644 --- a/include/sot/stg.hxx +++ b/include/sot/stg.hxx @@ -128,7 +128,7 @@ protected: StgDirEntry* pEntry; // the dir entry OLEStorageBase( StgIo*, StgDirEntry*, StreamMode& ); ~OLEStorageBase(); - bool Validate_Impl( bool=false ) const; + bool Validate_Impl( bool ) const; static bool ValidateMode_Impl( StreamMode, StgDirEntry* p = nullptr ); }; @@ -165,9 +165,9 @@ class SOT_DLLPUBLIC Storage : public BaseStorage, public OLEStorageBase protected: virtual ~Storage() override; public: - Storage( const OUString &, StreamMode = StreamMode::STD_READWRITE, bool bDirect = true ); - Storage( SvStream& rStrm, bool bDirect = true ); - Storage( UCBStorageStream& rStrm, bool bDirect = true ); + Storage( const OUString &, StreamMode, bool bDirect ); + Storage( SvStream& rStrm, bool bDirect ); + Storage( UCBStorageStream& rStrm, bool bDirect ); static bool IsStorageFile( const OUString & rFileName ); static bool IsStorageFile( SvStream* ); @@ -258,11 +258,16 @@ public: static bool IsStorageFile( SvStream* ); static OUString GetLinkedFile( SvStream& ); - UCBStorage( const ::ucbhelper::Content& rContent, const OUString& rName, StreamMode nMode, bool bDirect = true, bool bIsRoot = true ); + UCBStorage( const ::ucbhelper::Content& rContent, + const OUString& rName, + StreamMode nMode, + bool bDirect, + bool bIsRoot ); + UCBStorage( const OUString& rName, StreamMode nMode, - bool bDirect = true, - bool bIsRoot = true ); + bool bDirect, + bool bIsRoot ); UCBStorage( const OUString& rName, StreamMode nMode, @@ -273,7 +278,8 @@ public: xProgressHandler ); UCBStorage( UCBStorage_Impl* ); - UCBStorage( SvStream& rStrm, bool bDirect = true ); + + UCBStorage( SvStream& rStrm, bool bDirect ); virtual const OUString& GetName() const override; virtual bool IsRoot() const override; diff --git a/include/sot/storage.hxx b/include/sot/storage.hxx index fc0d4240fc1b..2365f13a237c 100644 --- a/include/sot/storage.hxx +++ b/include/sot/storage.hxx @@ -112,7 +112,7 @@ public: m_nError = nErrorCode; } - void SignAsRoot( bool b = true ) { m_bIsRoot = b; } + void SignAsRoot( bool b ) { m_bIsRoot = b; } // own data sector void SetClass( const SvGlobalName & rClass, diff --git a/include/svl/cintitem.hxx b/include/svl/cintitem.hxx index 2c8afc8aa5e3..e6b404cd1198 100644 --- a/include/svl/cintitem.hxx +++ b/include/svl/cintitem.hxx @@ -30,7 +30,7 @@ class SVL_DLLPUBLIC CntByteItem: public SfxPoolItem public: - CntByteItem(sal_uInt16 which = 0, sal_uInt8 nTheValue = 0): + CntByteItem(sal_uInt16 which, sal_uInt8 nTheValue): SfxPoolItem(which), m_nValue(nTheValue) {} CntByteItem(const CntByteItem & rItem): @@ -76,7 +76,7 @@ class SVL_DLLPUBLIC CntUInt16Item: public SfxPoolItem public: - CntUInt16Item(sal_uInt16 which = 0, sal_uInt16 nTheValue = 0): + CntUInt16Item(sal_uInt16 which, sal_uInt16 nTheValue): SfxPoolItem(which), m_nValue(nTheValue) {} @@ -125,7 +125,7 @@ class SVL_DLLPUBLIC CntInt32Item: public SfxPoolItem public: - CntInt32Item(sal_uInt16 which = 0, sal_Int32 nTheValue = 0): + CntInt32Item(sal_uInt16 which, sal_Int32 nTheValue): SfxPoolItem(which), m_nValue(nTheValue) {} @@ -174,7 +174,7 @@ class SVL_DLLPUBLIC CntUInt32Item: public SfxPoolItem public: - CntUInt32Item(sal_uInt16 which = 0, sal_uInt32 nTheValue = 0): + CntUInt32Item(sal_uInt16 which, sal_uInt32 nTheValue): SfxPoolItem(which), m_nValue(nTheValue) {} diff --git a/include/svl/custritm.hxx b/include/svl/custritm.hxx index 5693ceb74ca0..84b2db1f6ce1 100644 --- a/include/svl/custritm.hxx +++ b/include/svl/custritm.hxx @@ -30,7 +30,7 @@ class SVL_DLLPUBLIC CntUnencodedStringItem: public SfxPoolItem public: - CntUnencodedStringItem(sal_uInt16 which = 0): SfxPoolItem(which) + CntUnencodedStringItem(sal_uInt16 which): SfxPoolItem(which) {} CntUnencodedStringItem(sal_uInt16 which, const OUString & rTheValue): diff --git a/include/svl/gridprinter.hxx b/include/svl/gridprinter.hxx index 6f3f61b1a687..52a01e33b9fa 100644 --- a/include/svl/gridprinter.hxx +++ b/include/svl/gridprinter.hxx @@ -26,7 +26,7 @@ class SVL_DLLPUBLIC GridPrinter std::unique_ptr<Impl> mpImpl; public: - GridPrinter( size_t nRows, size_t nCols, bool bPrint = true ); + GridPrinter( size_t nRows, size_t nCols, bool bPrint ); ~GridPrinter(); void set( size_t nRow, size_t nCol, const OUString& rStr ); void print( const char* pHeader ) const; diff --git a/include/svl/int64item.hxx b/include/svl/int64item.hxx index 4245ab13d52a..46a3325a2d4b 100644 --- a/include/svl/int64item.hxx +++ b/include/svl/int64item.hxx @@ -18,7 +18,7 @@ class SVL_DLLPUBLIC SfxInt64Item : public SfxPoolItem sal_Int64 mnValue; public: - SfxInt64Item( sal_uInt16 nWhich = 0, sal_Int64 nVal = 0 ); + SfxInt64Item( sal_uInt16 nWhich, sal_Int64 nVal ); SfxInt64Item( sal_uInt16 nWhich, SvStream & rStream ); SfxInt64Item( const SfxInt64Item& rItem ); diff --git a/include/svl/itempool.hxx b/include/svl/itempool.hxx index e15bf822d4a3..7255bc7f1206 100644 --- a/include/svl/itempool.hxx +++ b/include/svl/itempool.hxx @@ -150,10 +150,10 @@ public: const SfxPoolItem& GetDefaultItem( sal_uInt16 nWhich ) const; const SfxPoolItem* LoadItem( SvStream &rStream, - const SfxItemPool *pRefPool = nullptr ); + const SfxItemPool *pRefPool ); bool StoreItem( SvStream &rStream, const SfxPoolItem &rItem, - bool bDirect = false ) const; + bool bDirect ) const; sal_uInt32 GetSurrogate(const SfxPoolItem *) const; const SfxPoolItem * GetItem2(sal_uInt16 nWhich, sal_uInt32 nSurrogate) const; diff --git a/include/svl/metitem.hxx b/include/svl/metitem.hxx index df11f83d36b1..5fcd3ceb7883 100644 --- a/include/svl/metitem.hxx +++ b/include/svl/metitem.hxx @@ -25,7 +25,7 @@ class SVL_DLLPUBLIC SfxMetricItem: public SfxInt32Item { public: - explicit SfxMetricItem( sal_uInt16 nWhich = 0, sal_uInt32 nValue = 0 ); + explicit SfxMetricItem( sal_uInt16 nWhich, sal_uInt32 nValue ); SfxMetricItem( sal_uInt16 nWhich, SvStream & ); SfxMetricItem( const SfxMetricItem& ); virtual ~SfxMetricItem() override {} diff --git a/include/svl/visitem.hxx b/include/svl/visitem.hxx index b661c37f57da..e6e054eff5bb 100644 --- a/include/svl/visitem.hxx +++ b/include/svl/visitem.hxx @@ -30,7 +30,7 @@ class SVL_DLLPUBLIC SfxVisibilityItem: public SfxPoolItem public: - explicit SfxVisibilityItem(sal_uInt16 which = 0, bool bVisible = true): + explicit SfxVisibilityItem(sal_uInt16 which, bool bVisible = true): SfxPoolItem(which) { m_nValue.bVisible = bVisible; diff --git a/include/svl/zformat.hxx b/include/svl/zformat.hxx index 50be721d6430..ce632ae04920 100644 --- a/include/svl/zformat.hxx +++ b/include/svl/zformat.hxx @@ -618,7 +618,7 @@ private: // normal digits or other digits, depending on ImpSvNumFor.aNatNum, // [NatNum1], [NatNum2], ... SVL_DLLPRIVATE OUString ImpGetNatNumString( const SvNumberNatNum& rNum, sal_Int32 nVal, - sal_uInt16 nMinDigits = 0 ) const; + sal_uInt16 nMinDigits ) const; OUString ImpIntToString( sal_uInt16 nIx, sal_Int32 nVal, sal_uInt16 nMinDigits = 0 ) const { |