summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-18 14:19:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-21 14:47:26 +0200
commit3f2babb8aa1267649fa1c1903d11b7c0c304cf7c (patch)
tree8f22d7661eaf4a1f1aa17aff6a0e3b37416c671e
parent5968c5b1f785a54fe28ddbc47abd77d4f40c720e (diff)
loplugin:virtualdead unused param in UnknownAttrToken
Change-Id: Iccf88b919cfc40419271e6f18d101027ef2bb9df Reviewed-on: https://gerrit.libreoffice.org/81218 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--compilerplugins/clang/virtualdead.unusedparams.results3
-rw-r--r--editeng/source/editeng/eertfpar.cxx2
-rw-r--r--editeng/source/editeng/eertfpar.hxx2
-rw-r--r--editeng/source/rtf/rtfitem.cxx6
-rw-r--r--include/editeng/svxrtf.hxx2
5 files changed, 6 insertions, 9 deletions
diff --git a/compilerplugins/clang/virtualdead.unusedparams.results b/compilerplugins/clang/virtualdead.unusedparams.results
index 54e9d3c1f199..09c0bb4700d9 100644
--- a/compilerplugins/clang/virtualdead.unusedparams.results
+++ b/compilerplugins/clang/virtualdead.unusedparams.results
@@ -112,9 +112,6 @@ include/editeng/editeng.hxx:478
include/editeng/editeng.hxx:503
void EditEngine::FieldClicked(const class SvxFieldItem &,int,int,)
100
-include/editeng/svxrtf.hxx:247
- void SvxRTFParser::UnknownAttrToken(int,class SfxItemSet *,)
- 10
include/filter/msfilter/msdffimp.hxx:546
_Bool SvxMSDffManager::ShapeHasText(unsigned long,unsigned long,)const
00
diff --git a/editeng/source/editeng/eertfpar.cxx b/editeng/source/editeng/eertfpar.cxx
index cc1cf2bd3424..dd5043dd5af2 100644
--- a/editeng/source/editeng/eertfpar.cxx
+++ b/editeng/source/editeng/eertfpar.cxx
@@ -229,7 +229,7 @@ void EditRTFParser::NextToken( int nToken )
}
}
-void EditRTFParser::UnknownAttrToken( int nToken, SfxItemSet* )
+void EditRTFParser::UnknownAttrToken( int nToken )
{
// for Tokens which are not evaluated in ReadAttr
// Actually, only for Calc (RTFTokenHdl), so that RTF_INTBL
diff --git a/editeng/source/editeng/eertfpar.hxx b/editeng/source/editeng/eertfpar.hxx
index 51f750daa589..963748f94eb6 100644
--- a/editeng/source/editeng/eertfpar.hxx
+++ b/editeng/source/editeng/eertfpar.hxx
@@ -42,7 +42,7 @@ private:
virtual void SetEndPrevPara( EditNodeIdx*& rpNodePos,
sal_Int32& rCntPos ) override;
- virtual void UnknownAttrToken( int nToken, SfxItemSet* pSet ) override;
+ virtual void UnknownAttrToken( int nToken ) override;
virtual void NextToken( int nToken ) override;
virtual void SetAttrInDoc( SvxRTFItemStackType &rSet ) override;
virtual bool IsEndPara( EditNodeIdx* pNd, sal_Int32 nCnt ) const override;
diff --git a/editeng/source/rtf/rtfitem.cxx b/editeng/source/rtf/rtfitem.cxx
index 775104700941..345c0da1b754 100644
--- a/editeng/source/rtf/rtfitem.cxx
+++ b/editeng/source/rtf/rtfitem.cxx
@@ -256,7 +256,7 @@ void SvxRTFParser::ReadAttr( int nToken, SfxItemSet* pSet )
case RTF_CS:
case RTF_LS:
case RTF_ILVL:
- UnknownAttrToken( nToken, pSet );
+ UnknownAttrToken( nToken );
break;
case RTF_S:
@@ -1110,7 +1110,7 @@ ATTR_SETEMPHASIS:
case RTF_PGDSCNO:
case RTF_PGBRK:
case RTF_SOUTLVL:
- UnknownAttrToken( nToken, pSet );
+ UnknownAttrToken( nToken );
// overwrite the closing parenthesis
break;
@@ -1899,7 +1899,7 @@ void SvxRTFParser::CalcValue()
}
// for tokens that are not evaluated in ReadAttr
-void SvxRTFParser::UnknownAttrToken( int, SfxItemSet* )
+void SvxRTFParser::UnknownAttrToken( int )
{
}
diff --git a/include/editeng/svxrtf.hxx b/include/editeng/svxrtf.hxx
index 1188ed65f8af..5c070f652be7 100644
--- a/include/editeng/svxrtf.hxx
+++ b/include/editeng/svxrtf.hxx
@@ -244,7 +244,7 @@ protected:
sal_Int32& rCntPos )=0;
virtual void SetAttrInDoc( SvxRTFItemStackType &rSet );
// for Tokens, which are not evaluated in ReadAttr
- virtual void UnknownAttrToken( int nToken, SfxItemSet* pSet );
+ virtual void UnknownAttrToken( int nToken );
// if no-one would like to have any twips
virtual void CalcValue();