diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-27 16:17:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-27 20:37:02 +0200 |
commit | 5f41f7b33e2f85be4c9d7380822916a7469cf39b (patch) | |
tree | 78a6f5e989ecf918598c9cc621411b92341f4d91 /sw/source/filter/basflt/fltshell.cxx | |
parent | b9d2c3345a14420ae2f936ffa37f269fcfe74475 (diff) |
loplugin:constantparam in sw
Change-Id: Ia477de0fb910f6a8fbb0a5054f4bdb43dd9ff381
Reviewed-on: https://gerrit.libreoffice.org/43951
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/basflt/fltshell.cxx')
-rw-r--r-- | sw/source/filter/basflt/fltshell.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sw/source/filter/basflt/fltshell.cxx b/sw/source/filter/basflt/fltshell.cxx index a2110025381c..bcfa1e5b61b9 100644 --- a/sw/source/filter/basflt/fltshell.cxx +++ b/sw/source/filter/basflt/fltshell.cxx @@ -484,11 +484,10 @@ static bool MakePoint(const SwFltStackEntry& rEntry, SwDoc* pDoc, // it adheres to certain restrictions on bookmarks in tables (cannot // span more than one cell) static bool MakeBookRegionOrPoint(const SwFltStackEntry& rEntry, SwDoc* pDoc, - SwPaM& rRegion, bool bCheck ) + SwPaM& rRegion ) { - if (rEntry.MakeRegion(pDoc, rRegion, bCheck )) + if (rEntry.MakeRegion(pDoc, rRegion, true/*bCheck*/ )) { - // sal_Bool b1 = rNds[rRegion.GetPoint()->nNode]->FindTableNode() != 0; if (rRegion.GetPoint()->nNode.GetNode().FindTableBoxStartNode() != rRegion.GetMark()->nNode.GetNode().FindTableBoxStartNode()) { @@ -633,7 +632,7 @@ void SwFltControlStack::SetAttrInDoc(const SwPosition& rTmpPos, if ( ( !IsFlagSet(HYPO) || IsFlagSet(BOOK_AND_REF) ) && !rEntry.bConsumedByField ) { - MakeBookRegionOrPoint(rEntry, pDoc, aRegion, true); + MakeBookRegionOrPoint(rEntry, pDoc, aRegion); // #i120879# - create a cross reference heading bookmark if appropriate. const IDocumentMarkAccess::MarkType eBookmarkType = ( pB->IsTOCBookmark() && @@ -646,7 +645,7 @@ void SwFltControlStack::SetAttrInDoc(const SwPosition& rTmpPos, break; case RES_FLTR_ANNOTATIONMARK: { - if (MakeBookRegionOrPoint(rEntry, pDoc, aRegion, true)) + if (MakeBookRegionOrPoint(rEntry, pDoc, aRegion)) { SwTextNode const*const pTextNode( aRegion.End()->nNode.GetNode().GetTextNode()); @@ -678,7 +677,7 @@ void SwFltControlStack::SetAttrInDoc(const SwPosition& rTmpPos, break; case RES_FLTR_RDFMARK: { - if (MakeBookRegionOrPoint(rEntry, pDoc, aRegion, true)) + if (MakeBookRegionOrPoint(rEntry, pDoc, aRegion)) { SwFltRDFMark* pMark = static_cast<SwFltRDFMark*>(rEntry.pAttr.get()); if (aRegion.GetNode().IsTextNode()) |