diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-08 10:47:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-08 10:44:29 +0100 |
commit | b8fe96f1da2c42c04a8094ca8c57d49763b7bded (patch) | |
tree | d2b1852c89f1776ef8ee25bbb99c6bd74a1ae984 /editeng | |
parent | 7960ccb41db49a7883afa036b820a7b7ffcb4a89 (diff) |
loplugin:constantparam in desktop..i18npool
Change-Id: Ie2e1004c1ccc03777a8da9cb1144e89eb28ff313
Reviewed-on: https://gerrit.libreoffice.org/50928
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/inc/editdoc.hxx | 2 | ||||
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 7 | ||||
-rw-r--r-- | editeng/source/items/numitem.cxx | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/editeng/inc/editdoc.hxx b/editeng/inc/editdoc.hxx index e833d8b005ce..755e642e345d 100644 --- a/editeng/inc/editdoc.hxx +++ b/editeng/inc/editdoc.hxx @@ -289,7 +289,7 @@ public: /// return length including expanded fields sal_uLong GetExpandedLen() const; /// return content including expanded fields - OUString GetExpandedText(sal_Int32 nStartPos = 0, sal_Int32 nEndPos = -1, bool bResolveFields = true) const; + OUString GetExpandedText(sal_Int32 nStartPos = 0, sal_Int32 nEndPos = -1) const; /// re-write offsets in the expanded text to string offsets void UnExpandPositions( sal_Int32 &rStartPos, sal_Int32 &rEndPos ); diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 50e16d6ba63b..32b965d7cc6d 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -1626,7 +1626,7 @@ sal_uLong ContentNode::GetExpandedLen() const return nLen; } -OUString ContentNode::GetExpandedText(sal_Int32 nStartPos, sal_Int32 nEndPos, bool bResolveFields) const +OUString ContentNode::GetExpandedText(sal_Int32 nStartPos, sal_Int32 nEndPos) const { if ( nEndPos < 0 || nEndPos > Len() ) nEndPos = Len(); @@ -1658,8 +1658,7 @@ OUString ContentNode::GetExpandedText(sal_Int32 nStartPos, sal_Int32 nEndPos, bo case EE_FEATURE_LINEBR: aStr += "\x0A"; break; case EE_FEATURE_FIELD: - if ( bResolveFields ) - aStr += static_cast<const EditCharAttribField*>(pNextFeature)->GetFieldValue(); + aStr += static_cast<const EditCharAttribField*>(pNextFeature)->GetFieldValue(); break; default: OSL_FAIL( "What feature?" ); } @@ -2163,7 +2162,7 @@ OUString EditDoc::GetParaAsString( sal_Int32 nNode ) const OUString EditDoc::GetParaAsString( const ContentNode* pNode, sal_Int32 nStartPos, sal_Int32 nEndPos) { - return pNode->GetExpandedText(nStartPos, nEndPos, true/*bResolveFields*/); + return pNode->GetExpandedText(nStartPos, nEndPos); } EditPaM EditDoc::GetStartPaM() const diff --git a/editeng/source/items/numitem.cxx b/editeng/source/items/numitem.cxx index 6b8a322a704c..3eeb00ae3573 100644 --- a/editeng/source/items/numitem.cxx +++ b/editeng/source/items/numitem.cxx @@ -670,7 +670,7 @@ void SvxNumRule::Store( SvStream &rStream ) if(!pConverter) pConverter = CreateFontToSubsFontConverter(aFmts[i]->GetBulletFont()->GetFamilyName(), - FontToSubsFontFlags::EXPORT|FontToSubsFontFlags::ONLYOLDSOSYMBOLFONTS); + FontToSubsFontFlags::EXPORT); } aFmts[i]->Store(rStream, pConverter); } |