summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-15 15:21:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-16 09:04:55 +0200
commit196f46db1b5dfddda6972a6b738d8b77b6c3601e (patch)
tree3264b328e2479c38f08e7db7e2f1e93df7c3539a /xmloff
parent19b4520fbfa8080821021586d8fe3428a2a893af (diff)
loplugin:constantparam
Change-Id: I0110e0c662004456e4bc8f8082e2e2fea59e0148 Reviewed-on: https://gerrit.libreoffice.org/54385 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/txtftne.cxx17
1 files changed, 8 insertions, 9 deletions
diff --git a/xmloff/source/text/txtftne.cxx b/xmloff/source/text/txtftne.cxx
index b606180c7e1b..13c2ad693686 100644
--- a/xmloff/source/text/txtftne.cxx
+++ b/xmloff/source/text/txtftne.cxx
@@ -230,15 +230,14 @@ static void lcl_exportString(
const OUString& sProperty,
sal_uInt16 nPrefix,
enum XMLTokenEnum eElement,
- bool bEncodeName,
- bool bOmitIfEmpty)
+ bool bEncodeName)
{
SAL_WARN_IF( eElement == XML_TOKEN_INVALID, "xmloff", "need element token");
Any aAny = rPropSet->getPropertyValue(sProperty);
OUString sTmp;
aAny >>= sTmp;
- if (!bOmitIfEmpty || !sTmp.isEmpty())
+ if (!sTmp.isEmpty())
{
if( bEncodeName )
sTmp = rExport.EncodeStyleName( sTmp );
@@ -257,33 +256,33 @@ void XMLTextParagraphExport::exportTextFootnoteConfigurationHelper(
lcl_exportString( GetExport(), rFootnoteConfig,
sParaStyleName,
XML_NAMESPACE_TEXT, XML_DEFAULT_STYLE_NAME,
- true, true);
+ true);
// citation style
lcl_exportString( GetExport(), rFootnoteConfig,
sCharStyleName,
XML_NAMESPACE_TEXT, XML_CITATION_STYLE_NAME,
- true, true);
+ true);
// citation body style
lcl_exportString( GetExport(), rFootnoteConfig,
sAnchorCharStyleName,
XML_NAMESPACE_TEXT, XML_CITATION_BODY_STYLE_NAME,
- true, true);
+ true);
// page style
lcl_exportString( GetExport(), rFootnoteConfig,
sPageStyleName,
XML_NAMESPACE_TEXT, XML_MASTER_PAGE_NAME,
- true, true );
+ true );
// prefix
lcl_exportString( GetExport(), rFootnoteConfig, sPrefix,
- XML_NAMESPACE_STYLE, XML_NUM_PREFIX, false, true);
+ XML_NAMESPACE_STYLE, XML_NUM_PREFIX, false);
// suffix
lcl_exportString( GetExport(), rFootnoteConfig, sSuffix,
- XML_NAMESPACE_STYLE, XML_NUM_SUFFIX, false, true);
+ XML_NAMESPACE_STYLE, XML_NUM_SUFFIX, false);
Any aAny;