summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-04 14:07:10 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-04-05 06:26:05 +0000
commit50bb5eddaac2b16f387ba610cdcfd934269dc73c (patch)
tree26f385d94ab4651eb19fb8fbc5b9253743ce6b91 /include
parentdb43ef00c12bc0f7fefd6d028c9a2ed8f771cd47 (diff)
loplugin:constantparam in editeng
Change-Id: If8342112e0657014266133954269b9396085a27d Reviewed-on: https://gerrit.libreoffice.org/23807 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/editeng/editview.hxx2
-rw-r--r--include/editeng/numitem.hxx6
-rw-r--r--include/editeng/outliner.hxx2
-rw-r--r--include/editeng/unoedprx.hxx2
-rw-r--r--include/editeng/unoedsrc.hxx4
-rw-r--r--include/editeng/unofored.hxx2
-rw-r--r--include/editeng/unoforou.hxx2
-rw-r--r--include/editeng/unotext.hxx2
8 files changed, 11 insertions, 11 deletions
diff --git a/include/editeng/editview.hxx b/include/editeng/editview.hxx
index 22fb58c8e0f4..73ceaacfef93 100644
--- a/include/editeng/editview.hxx
+++ b/include/editeng/editview.hxx
@@ -177,7 +177,7 @@ public:
void RemoveCharAttribs( sal_Int32 nPara, sal_uInt16 nWhich = 0 );
void RemoveAttribsKeepLanguages( bool bRemoveParaAttribs = false );
- sal_uInt32 Read( SvStream& rInput, const OUString& rBaseURL, EETextFormat eFormat, bool bSelect = false, SvKeyValueIterator* pHTTPHeaderAttrs = nullptr );
+ sal_uInt32 Read( SvStream& rInput, const OUString& rBaseURL, EETextFormat eFormat, SvKeyValueIterator* pHTTPHeaderAttrs = nullptr );
void SetBackgroundColor( const Color& rColor );
Color GetBackgroundColor() const;
diff --git a/include/editeng/numitem.hxx b/include/editeng/numitem.hxx
index 31f7569cae4b..c33cfefe9dba 100644
--- a/include/editeng/numitem.hxx
+++ b/include/editeng/numitem.hxx
@@ -320,7 +320,7 @@ class SvxNodeNum
bool bStartNum; // Restart numbering
public:
- explicit inline SvxNodeNum( sal_uInt8 nLevel = SVX_NO_NUM, sal_uInt16 nSetVal = USHRT_MAX );
+ explicit inline SvxNodeNum( sal_uInt16 nSetVal = USHRT_MAX );
inline SvxNodeNum& operator=( const SvxNodeNum& rCpy );
sal_uInt8 GetLevel() const { return nMyLevel; }
@@ -330,8 +330,8 @@ public:
sal_uInt16* GetLevelVal() { return nLevelVal; }
};
-SvxNodeNum::SvxNodeNum( sal_uInt8 nLevel, sal_uInt16 nSetVal )
- : nSetValue( nSetVal ), nMyLevel( nLevel ), bStartNum( false )
+SvxNodeNum::SvxNodeNum( sal_uInt16 nSetVal )
+ : nSetValue( nSetVal ), nMyLevel( 0 ), bStartNum( false )
{
memset( nLevelVal, 0, sizeof( nLevelVal ) );
}
diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx
index 7060ca4d51d2..d8c990a8e0ec 100644
--- a/include/editeng/outliner.hxx
+++ b/include/editeng/outliner.hxx
@@ -308,7 +308,7 @@ public:
void SetSelection( const ESelection& );
void GetSelectionRectangles(std::vector<Rectangle>& rLogicRects) const;
- void RemoveAttribs( bool bRemoveParaAttribs = false, sal_uInt16 nWhich = 0, bool bKeepLanguages = false );
+ void RemoveAttribs( bool bRemoveParaAttribs = false, bool bKeepLanguages = false );
void RemoveAttribsKeepLanguages( bool bRemoveParaAttribs );
bool HasSelection() const;
diff --git a/include/editeng/unoedprx.hxx b/include/editeng/unoedprx.hxx
index 2737f4dcb769..8ec9c616b083 100644
--- a/include/editeng/unoedprx.hxx
+++ b/include/editeng/unoedprx.hxx
@@ -39,7 +39,7 @@ public:
virtual SfxItemSet GetAttribs( const ESelection& rSel, EditEngineAttribs nOnlyHardAttrib = EditEngineAttribs_All ) const override;
virtual SfxItemSet GetParaAttribs( sal_Int32 nPara ) const override;
virtual void SetParaAttribs( sal_Int32 nPara, const SfxItemSet& rSet ) override;
- virtual void RemoveAttribs( const ESelection& rSelection, sal_uInt16 nWhich ) override;
+ virtual void RemoveAttribs( const ESelection& rSelection ) override;
virtual void GetPortions( sal_Int32 nPara, std::vector<sal_Int32>& rList ) const override;
sal_uInt16 CalcEditEngineIndex( sal_Int32 nPara, sal_Int32 nLogicalIndex );
diff --git a/include/editeng/unoedsrc.hxx b/include/editeng/unoedsrc.hxx
index d558be6f6f67..7c84c7c7625e 100644
--- a/include/editeng/unoedsrc.hxx
+++ b/include/editeng/unoedsrc.hxx
@@ -140,12 +140,12 @@ public:
virtual ~SvxTextForwarder();
virtual sal_Int32 GetParagraphCount() const = 0;
- virtual sal_Int32 GetTextLen( sal_Int32 nParagraph ) const = 0;
+ virtual sal_Int32 GetTextLen( sal_Int32 nParagraph ) const = 0;
virtual OUString GetText( const ESelection& rSel ) const = 0;
virtual SfxItemSet GetAttribs( const ESelection& rSel, EditEngineAttribs nOnlyHardAttrib = EditEngineAttribs_All ) const = 0;
virtual SfxItemSet GetParaAttribs( sal_Int32 nPara ) const = 0;
virtual void SetParaAttribs( sal_Int32 nPara, const SfxItemSet& rSet ) = 0;
- virtual void RemoveAttribs( const ESelection& rSelection, sal_uInt16 nWhich ) = 0;
+ virtual void RemoveAttribs( const ESelection& rSelection ) = 0;
virtual void GetPortions( sal_Int32 nPara, std::vector<sal_Int32>& rList ) const = 0;
virtual SfxItemState GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const = 0;
diff --git a/include/editeng/unofored.hxx b/include/editeng/unofored.hxx
index 7108d5e20c9d..83e617f66530 100644
--- a/include/editeng/unofored.hxx
+++ b/include/editeng/unofored.hxx
@@ -41,7 +41,7 @@ public:
virtual SfxItemSet GetAttribs( const ESelection& rSel, EditEngineAttribs nOnlyHardAttrib = EditEngineAttribs_All ) const override;
virtual SfxItemSet GetParaAttribs( sal_Int32 nPara ) const override;
virtual void SetParaAttribs( sal_Int32 nPara, const SfxItemSet& rSet ) override;
- virtual void RemoveAttribs( const ESelection& rSelection, sal_uInt16 nWhich ) override;
+ virtual void RemoveAttribs( const ESelection& rSelection ) override;
virtual void GetPortions( sal_Int32 nPara, std::vector<sal_Int32>& rList ) const override;
virtual SfxItemState GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const override;
diff --git a/include/editeng/unoforou.hxx b/include/editeng/unoforou.hxx
index f12958654278..27de11c128c4 100644
--- a/include/editeng/unoforou.hxx
+++ b/include/editeng/unoforou.hxx
@@ -59,7 +59,7 @@ public:
virtual SfxItemSet GetAttribs( const ESelection& rSel, EditEngineAttribs nOnlyHardAttrib = EditEngineAttribs_All ) const override;
virtual SfxItemSet GetParaAttribs( sal_Int32 nPara ) const override;
virtual void SetParaAttribs( sal_Int32 nPara, const SfxItemSet& rSet ) override;
- virtual void RemoveAttribs( const ESelection& rSelection, sal_uInt16 nWhich ) override;
+ virtual void RemoveAttribs( const ESelection& rSelection ) override;
virtual void GetPortions( sal_Int32 nPara, std::vector<sal_Int32>& rList ) const override;
virtual SfxItemState GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const override;
diff --git a/include/editeng/unotext.hxx b/include/editeng/unotext.hxx
index 73d285156b11..b3336d06bb9c 100644
--- a/include/editeng/unotext.hxx
+++ b/include/editeng/unotext.hxx
@@ -182,7 +182,7 @@ public:
virtual SfxItemSet GetAttribs( const ESelection& rSel, EditEngineAttribs nOnlyHardAttrib = EditEngineAttribs_All ) const override;
virtual SfxItemSet GetParaAttribs( sal_Int32 nPara ) const override;
virtual void SetParaAttribs( sal_Int32 nPara, const SfxItemSet& rSet ) override;
- virtual void RemoveAttribs( const ESelection& rSelection, sal_uInt16 nWhich ) override;
+ virtual void RemoveAttribs( const ESelection& rSelection ) override;
virtual void GetPortions( sal_Int32 nPara, std::vector<sal_Int32>& rList ) const override;
SfxItemState GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const override;