summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLSectionFootnoteConfigExport.cxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-01 11:00:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-01 12:23:08 +0200
commit7bd7ff5a8d938e474a8f15e2c6facad632a342bb (patch)
tree6321afdb483360b1130b0d2a0d995b6f27bbe59b /xmloff/source/text/XMLSectionFootnoteConfigExport.cxx
parentcc2b7c1f930bc05253153f3c8381fb4fb352f3ca (diff)
loplugin:reducevarscope in xmloff
Change-Id: Ib67311f84a6a7a490afb392e642d74693fde3113 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103747 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/text/XMLSectionFootnoteConfigExport.cxx')
-rw-r--r--xmloff/source/text/XMLSectionFootnoteConfigExport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/text/XMLSectionFootnoteConfigExport.cxx b/xmloff/source/text/XMLSectionFootnoteConfigExport.cxx
index 048e8b7ab7dd..6e1c06319110 100644
--- a/xmloff/source/text/XMLSectionFootnoteConfigExport.cxx
+++ b/xmloff/source/text/XMLSectionFootnoteConfigExport.cxx
@@ -131,7 +131,6 @@ void XMLSectionFootnoteConfigExport::exportXML(
GetXMLToken( bEndnote ? XML_ENDNOTE
: XML_FOOTNOTE ) );
// start numbering
- OUStringBuffer sBuf;
if (bNumRestart)
{
// restart number is stored as 0.., but interpreted as 1..
@@ -154,6 +153,7 @@ void XMLSectionFootnoteConfigExport::exportXML(
}
// number type: num format
+ OUStringBuffer sBuf;
rExport.GetMM100UnitConverter().convertNumFormat( sBuf,
nNumberingType );
rExport.AddAttribute(XML_NAMESPACE_STYLE, XML_NUM_FORMAT,