diff options
| author | Noel Grandin <noel@peralex.com> | 2016-03-16 10:17:37 +0200 |
|---|---|---|
| committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-16 11:35:38 +0000 |
| commit | 78f0d15893c56d7368ddd7ded4e70f2a3bb9d2f4 (patch) | |
| tree | 2dc9a366e0854d852a17ef32ee819b00a6b61778 /xmloff/source/style/numehelp.cxx | |
| parent | 732476f2e3c10edf1776171605d8ce6c6b22338f (diff) | |
loplugin:constantparam in xmloff/
Change-Id: I376f1d4ac65de584f9caa6ba8e25e43216374112
Reviewed-on: https://gerrit.libreoffice.org/23295
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmloff/source/style/numehelp.cxx')
| -rw-r--r-- | xmloff/source/style/numehelp.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xmloff/source/style/numehelp.cxx b/xmloff/source/style/numehelp.cxx index 22d62d61eadf..2e13bca105d5 100644 --- a/xmloff/source/style/numehelp.cxx +++ b/xmloff/source/style/numehelp.cxx @@ -78,7 +78,7 @@ XMLNumberFormatAttributesExportHelper::~XMLNumberFormatAttributesExportHelper() sal_Int16 XMLNumberFormatAttributesExportHelper::GetCellType(const sal_Int32 nNumberFormat, OUString& sCurrency, bool& bIsStandard) { - XMLNumberFormat aFormat("", nNumberFormat, 0); + XMLNumberFormat aFormat("", nNumberFormat); XMLNumberFormatSet::iterator aItr(aNumberFormats.find(aFormat)); XMLNumberFormatSet::iterator aEndItr(aNumberFormats.end()); if (aItr != aEndItr) @@ -503,13 +503,12 @@ void XMLNumberFormatAttributesExportHelper::SetNumberFormatAttributes( void XMLNumberFormatAttributesExportHelper::SetNumberFormatAttributes( const OUString& rValue, const OUString& rCharacters, - bool bExportValue, bool bExportTypeAttribute, + bool bExportValue, sal_uInt16 nNamespace) { if (pExport) { - if (bExportTypeAttribute) - pExport->AddAttribute(nNamespace, XML_VALUE_TYPE, XML_STRING); + pExport->AddAttribute(nNamespace, XML_VALUE_TYPE, XML_STRING); if (bExportValue && !rValue.isEmpty() && (rValue != rCharacters)) pExport->AddAttribute(sAttrStringValue, rValue); } |
