summaryrefslogtreecommitdiff
path: root/xmloff/source/text/txtftne.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-01 09:26:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-02 08:00:10 +0000
commit1461ebbbb5d47d90e31f0945a4878a68fbee5213 (patch)
tree5af28d3cdaf4d5195ddf9e69727807ab8104a8e2 /xmloff/source/text/txtftne.cxx
parentc0f9bdd3e644e3ebf690aff9eb1aeec4f16dbf27 (diff)
expand out ::sax::Converter::convertNumber to OUString::number
which results in much simpler code overall, there is no need to go via an OUStringBuffer all the time Change-Id: I69eba92c93f471fa9a45f97c29c56dcf3cd1ebf8 Reviewed-on: https://gerrit.libreoffice.org/33773 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/text/txtftne.cxx')
-rw-r--r--xmloff/source/text/txtftne.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmloff/source/text/txtftne.cxx b/xmloff/source/text/txtftne.cxx
index 18333c9bb3de..e504539ece06 100644
--- a/xmloff/source/text/txtftne.cxx
+++ b/xmloff/source/text/txtftne.cxx
@@ -308,9 +308,8 @@ void XMLTextParagraphExport::exportTextFootnoteConfigurationHelper(
aAny = rFootnoteConfig->getPropertyValue(sStartAt);
sal_Int16 nOffset = 0;
aAny >>= nOffset;
- ::sax::Converter::convertNumber(sBuffer, (sal_Int32)nOffset);
GetExport().AddAttribute(XML_NAMESPACE_TEXT, XML_START_VALUE,
- sBuffer.makeStringAndClear());
+ OUString::number(nOffset));
// some properties are for footnotes only
if (!bIsEndnote)