summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLSectionFootnoteConfigExport.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/XMLSectionFootnoteConfigExport.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/XMLSectionFootnoteConfigExport.cxx')
-rw-r--r--xmloff/source/text/XMLSectionFootnoteConfigExport.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmloff/source/text/XMLSectionFootnoteConfigExport.cxx b/xmloff/source/text/XMLSectionFootnoteConfigExport.cxx
index 4d2e3b21b866..f68df46427dd 100644
--- a/xmloff/source/text/XMLSectionFootnoteConfigExport.cxx
+++ b/xmloff/source/text/XMLSectionFootnoteConfigExport.cxx
@@ -137,10 +137,8 @@ void XMLSectionFootnoteConfigExport::exportXML(
if (bNumRestart)
{
// restart number is stored as 0.., but interpreted as 1..
- ::sax::Converter::convertNumber(sBuf,
- (sal_Int32)(nNumRestartAt+1));
rExport.AddAttribute(XML_NAMESPACE_TEXT, XML_START_VALUE,
- sBuf.makeStringAndClear());
+ OUString::number(nNumRestartAt+1));
}
if (bNumOwn)