summaryrefslogtreecommitdiff
path: root/editeng/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-08 10:47:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-08 10:44:29 +0100
commitb8fe96f1da2c42c04a8094ca8c57d49763b7bded (patch)
treed2b1852c89f1776ef8ee25bbb99c6bd74a1ae984 /editeng/source
parent7960ccb41db49a7883afa036b820a7b7ffcb4a89 (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/source')
-rw-r--r--editeng/source/editeng/editdoc.cxx7
-rw-r--r--editeng/source/items/numitem.cxx2
2 files changed, 4 insertions, 5 deletions
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);
}