diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-05 15:38:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-08 11:40:01 +0200 |
commit | 0aa7c716cc1ad27da4ecfc9a40b1b1646bbb0fa8 (patch) | |
tree | 8f2acd3d8df2e3a1ec5d3e4081f53ea831577be3 /sw/source/core/doc/docruby.cxx | |
parent | 33013a5feb1cfbb8cb9ddd10083bc9ff470da160 (diff) |
loplugin:checkunusedparams in sw(part2)
Change-Id: Ic6829542628ed1f5ed7d6b3d6be1d28ed1b5c75b
Reviewed-on: https://gerrit.libreoffice.org/37292
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/doc/docruby.cxx')
-rw-r--r-- | sw/source/core/doc/docruby.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sw/source/core/doc/docruby.cxx b/sw/source/core/doc/docruby.cxx index 82bbe01a6c1a..efa8d1592150 100644 --- a/sw/source/core/doc/docruby.cxx +++ b/sw/source/core/doc/docruby.cxx @@ -46,8 +46,7 @@ using namespace ::com::sun::star::i18n; * - String - the orig text * - SwFormatRuby - the ruby attribute */ -sal_uInt16 SwDoc::FillRubyList( const SwPaM& rPam, SwRubyList& rList, - sal_uInt16 nMode ) +sal_uInt16 SwDoc::FillRubyList( const SwPaM& rPam, SwRubyList& rList ) { const SwPaM *_pStartCursor = rPam.GetNext(), *_pStartCursor2 = _pStartCursor; @@ -67,7 +66,7 @@ sal_uInt16 SwDoc::FillRubyList( const SwPaM& rPam, SwRubyList& rList, aPam.SetMark(); *aPam.GetMark() = *pEnd; } - if( SelectNextRubyChars( aPam, *pNew, nMode )) + if( SelectNextRubyChars( aPam, *pNew )) { rList.push_back(std::move(pNew)); aPam.DeleteMark(); @@ -91,8 +90,7 @@ sal_uInt16 SwDoc::FillRubyList( const SwPaM& rPam, SwRubyList& rList, return rList.size(); } -void SwDoc::SetRubyList( const SwPaM& rPam, const SwRubyList& rList, - sal_uInt16 nMode ) +void SwDoc::SetRubyList( const SwPaM& rPam, const SwRubyList& rList ) { GetIDocumentUndoRedo().StartUndo( SwUndoId::SETRUBYATTR, nullptr ); std::set<sal_uInt16> aDelArr; @@ -119,7 +117,7 @@ void SwDoc::SetRubyList( const SwPaM& rPam, const SwRubyList& rList, aPam.SetMark(); *aPam.GetMark() = *pEnd; } - if( SelectNextRubyChars( aPam, aCheckEntry, nMode )) + if( SelectNextRubyChars( aPam, aCheckEntry )) { const SwRubyListEntry* pEntry = rList[ nListEntry++ ].get(); if( aCheckEntry.GetRubyAttr() != pEntry->GetRubyAttr() ) @@ -178,7 +176,7 @@ void SwDoc::SetRubyList( const SwPaM& rPam, const SwRubyList& rList, GetIDocumentUndoRedo().EndUndo( SwUndoId::SETRUBYATTR, nullptr ); } -bool SwDoc::SelectNextRubyChars( SwPaM& rPam, SwRubyListEntry& rEntry, sal_uInt16 ) +bool SwDoc::SelectNextRubyChars( SwPaM& rPam, SwRubyListEntry& rEntry ) { // Point must be the startposition, Mark is optional the end position SwPosition* pPos = rPam.GetPoint(); |