From 196f46db1b5dfddda6972a6b738d8b77b6c3601e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 15 May 2018 15:21:22 +0200 Subject: loplugin:constantparam Change-Id: I0110e0c662004456e4bc8f8082e2e2fea59e0148 Reviewed-on: https://gerrit.libreoffice.org/54385 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/text/txtftne.cxx | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'xmloff') 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; -- cgit