diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-01 09:12:39 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-01 11:20:24 +0200 |
commit | c6eb232cb7b2a1fc58edb379463d1aa589973af4 (patch) | |
tree | dfb9fb601727b83356ece5f8a37394677d1590ee /include | |
parent | 3da977def7fa97e791c279c05de6b2e06b79fcd4 (diff) |
loplugin:unuseddefaultparam in svl
Change-Id: Ifc82563c8930332d460df4d97935ba6e9946689f
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/filerec.hxx | 4 | ||||
-rw-r--r-- | include/svl/inettype.hxx | 3 | ||||
-rw-r--r-- | include/svl/itempool.hxx | 2 | ||||
-rw-r--r-- | include/svl/itemset.hxx | 7 | ||||
-rw-r--r-- | include/svl/undo.hxx | 4 | ||||
-rw-r--r-- | include/svl/urihelper.hxx | 3 | ||||
-rw-r--r-- | include/svl/zforlist.hxx | 4 | ||||
-rw-r--r-- | include/svl/zformat.hxx | 11 |
8 files changed, 16 insertions, 22 deletions
diff --git a/include/svl/filerec.hxx b/include/svl/filerec.hxx index b5685f33949f..063d2961908f 100644 --- a/include/svl/filerec.hxx +++ b/include/svl/filerec.hxx @@ -386,7 +386,7 @@ protected: public: inline ~SfxMultiFixRecordWriter(); - sal_uInt32 Close( bool bSeekToEndOfRec = true ); + sal_uInt32 Close(); }; /** write record with multiple content items @@ -450,7 +450,7 @@ public: void NewContent(); - sal_uInt32 Close( bool bSeekToEndOfRec = true ); + sal_uInt32 Close(); }; /** write record with multiple content items with identical size diff --git a/include/svl/inettype.hxx b/include/svl/inettype.hxx index 4fe32060585b..a5282a53feea 100644 --- a/include/svl/inettype.hxx +++ b/include/svl/inettype.hxx @@ -219,8 +219,7 @@ class SVL_DLLPUBLIC INetContentTypes public: static INetContentType RegisterContentType(OUString const & rTypeName, OUString const & rPresentation, - OUString const * pExtension = nullptr, - OUString const * pSystemFileType = nullptr); + OUString const * pExtension = nullptr); static INetContentType GetContentType(OUString const & rTypeName); diff --git a/include/svl/itempool.hxx b/include/svl/itempool.hxx index a719a11c69da..e9f216bd4f4c 100644 --- a/include/svl/itempool.hxx +++ b/include/svl/itempool.hxx @@ -204,7 +204,7 @@ public: sal_uInt16 GetWhich( sal_uInt16 nSlot, bool bDeep = true ) const; sal_uInt16 GetSlotId( sal_uInt16 nWhich, bool bDeep = true ) const; sal_uInt16 GetTrueWhich( sal_uInt16 nSlot, bool bDeep = true ) const; - sal_uInt16 GetTrueSlotId( sal_uInt16 nWhich, bool bDeep = true ) const; + sal_uInt16 GetTrueSlotId( sal_uInt16 nWhich ) const; void SetVersionMap( sal_uInt16 nVer, sal_uInt16 nOldStart, sal_uInt16 nOldEnd, diff --git a/include/svl/itemset.hxx b/include/svl/itemset.hxx index 6607ad5d37b6..ac3ea8def2f6 100644 --- a/include/svl/itemset.hxx +++ b/include/svl/itemset.hxx @@ -118,7 +118,7 @@ public: void DisableItem(sal_uInt16 nWhich); void InvalidateItem( sal_uInt16 nWhich ); sal_uInt16 ClearItem( sal_uInt16 nWhich = 0); - void ClearInvalidItems( bool bHardDefault = false ); + void ClearInvalidItems(); void InvalidateAllItems(); // HACK(via nWhich = 0) ??? inline void SetParent( const SfxItemSet* pNew ); @@ -136,7 +136,7 @@ public: bool Set( const SfxItemSet&, bool bDeep = true ); void Intersect( const SfxItemSet& rSet ); - void MergeValues( const SfxItemSet& rSet, bool bOverwriteDefaults = false ); + void MergeValues( const SfxItemSet& rSet ); void Differentiate( const SfxItemSet& rSet ); void MergeValue( const SfxPoolItem& rItem, bool bOverwriteDefaults = false ); @@ -146,8 +146,7 @@ public: void MergeRange( sal_uInt16 nFrom, sal_uInt16 nTo ); const SfxItemSet* GetParent() const { return m_pParent; } - void Load( SvStream &, bool bDirect = false, - const SfxItemPool *pRefPool = nullptr ); + void Load( SvStream &, bool bDirect = false ); void Store( SvStream &, bool bDirect = false ) const; bool operator==(const SfxItemSet &) const; diff --git a/include/svl/undo.hxx b/include/svl/undo.hxx index 0dce8073f855..cefb5fb50d85 100644 --- a/include/svl/undo.hxx +++ b/include/svl/undo.hxx @@ -199,7 +199,7 @@ namespace svl virtual size_t GetRedoActionCount( bool const i_currentLevel = CurrentLevel ) const = 0; virtual OUString GetRedoActionComment( size_t nNo=0, bool const i_currentLevel = CurrentLevel ) const = 0; - virtual SfxUndoAction* GetRedoAction( size_t nNo=0, bool const i_currentLevel = CurrentLevel ) const = 0; + virtual SfxUndoAction* GetRedoAction( size_t nNo=0 ) const = 0; virtual bool Undo() = 0; virtual bool Redo() = 0; @@ -317,7 +317,7 @@ public: virtual SfxUndoAction* GetUndoAction( size_t nNo=0 ) const override; virtual size_t GetRedoActionCount( bool const i_currentLevel = CurrentLevel ) const override; virtual OUString GetRedoActionComment( size_t nNo=0, bool const i_currentLevel = CurrentLevel ) const override; - virtual SfxUndoAction* GetRedoAction( size_t nNo=0, bool const i_currentLevel = CurrentLevel ) const override; + virtual SfxUndoAction* GetRedoAction( size_t nNo=0 ) const override; virtual bool Undo() override; virtual bool Redo() override; virtual void Clear() override; diff --git a/include/svl/urihelper.hxx b/include/svl/urihelper.hxx index 5f7633033ffd..ce10bc932a1c 100644 --- a/include/svl/urihelper.hxx +++ b/include/svl/urihelper.hxx @@ -120,8 +120,7 @@ SVL_DLLPUBLIC OUString FindFirstURLInText(OUString const & rText, sal_Int32 & rEnd, CharClass const & rCharClass, INetURLObject::EncodeMechanism eMechanism = INetURLObject::WAS_ENCODED, - rtl_TextEncoding eCharset = RTL_TEXTENCODING_UTF8, - INetURLObject::FSysStyle eStyle = INetURLObject::FSYS_DETECT); + rtl_TextEncoding eCharset = RTL_TEXTENCODING_UTF8); /** Remove any password component from both absolute and relative URLs. diff --git a/include/svl/zforlist.hxx b/include/svl/zforlist.hxx index 6178de7eb2d9..2b98347b97b5 100644 --- a/include/svl/zforlist.hxx +++ b/include/svl/zforlist.hxx @@ -845,7 +845,7 @@ private: LanguageType eLnge ); // Create builtin formats for language/country if necessary, return CLOffset - SVL_DLLPRIVATE sal_uInt32 ImpGenerateCL( LanguageType eLnge, bool bNoAdditionalFormats = false ); + SVL_DLLPRIVATE sal_uInt32 ImpGenerateCL( LanguageType eLnge ); // Build negative currency format, old compatibility style SVL_DLLPRIVATE void ImpGetNegCurrFormat(OUStringBuffer& sNegStr, const OUString& rCurrSymbol); @@ -879,7 +879,7 @@ private: // Non-PRODUCT version may check locale data for matching defaults in one // FormatElement group. SVL_DLLPRIVATE void ImpAdjustFormatCodeDefault( css::i18n::NumberFormatCode * pFormatArr, - sal_Int32 nCount, bool bCheckCorrectness = true ); + sal_Int32 nCount ); // Obtain the format entry for a given key index. SVL_DLLPRIVATE SvNumberformat* GetFormatEntry( sal_uInt32 nKey ); diff --git a/include/svl/zformat.hxx b/include/svl/zformat.hxx index b66006b1f6fb..2b3569e84c3e 100644 --- a/include/svl/zformat.hxx +++ b/include/svl/zformat.hxx @@ -196,8 +196,7 @@ public: // Build a format string of application defined keywords OUString GetMappedFormatstring( const NfKeywordTable& rKeywords, - const LocaleDataWrapper& rLoc, - bool bDontQuote = false ) const; + const LocaleDataWrapper& rLoc ) const; void SetStarFormatSupport( bool b ) { bStarFlag = b; } @@ -239,7 +238,7 @@ public: //! Only onLoad: convert from stored to current system language/country void ConvertLanguage( SvNumberFormatter& rConverter, - LanguageType eConvertFrom, LanguageType eConvertTo, bool bSystem = false ); + LanguageType eConvertFrom, LanguageType eConvertTo ); // Substring of a subformat code nNumFor (0..3) // nPos == 0xFFFF => last substring @@ -249,8 +248,7 @@ public: // Subtype of a subformat code nNumFor (0..3) // nPos == 0xFFFF => last substring - // bString==true: first/last SYMBOLTYPE_STRING or SYMBOLTYPE_CURRENCY - short GetNumForType( sal_uInt16 nNumFor, sal_uInt16 nPos, bool bString = false ) const; + short GetNumForType( sal_uInt16 nNumFor, sal_uInt16 nPos ) const; sal_Int32 GetForcedDenominatorForType( sal_uInt16 nNumFor ) const; /** If the count of string elements (substrings, ignoring [modifiers] and @@ -354,8 +352,7 @@ public: */ static sal_Int32 GetQuoteEnd( const OUString& rString, sal_Int32 nPos, sal_Unicode cQuote = '"', - sal_Unicode cEscIn = '\0', - sal_Unicode cEscOut = '\\' ); + sal_Unicode cEscIn = '\0' ); void SetComment( const OUString& rStr ) { sComment = rStr; } |