diff options
Diffstat (limited to 'xmloff/source/text/txtflde.cxx')
-rw-r--r-- | xmloff/source/text/txtflde.cxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx index b4005a976b9a..a1c04371666f 100644 --- a/xmloff/source/text/txtflde.cxx +++ b/xmloff/source/text/txtflde.cxx @@ -3446,10 +3446,7 @@ OUString XMLTextFieldExport::MakeFootnoteRefName( sal_Int16 nSeqNo) { // generate foot-/endnote ID - OUStringBuffer aBuf; - aBuf.append("ftn"); - aBuf.append(static_cast<sal_Int32>(nSeqNo)); - return aBuf.makeStringAndClear(); + return "ftn" + OUString::number(static_cast<sal_Int32>(nSeqNo)); } OUString XMLTextFieldExport::MakeSequenceRefName( @@ -3457,11 +3454,7 @@ OUString XMLTextFieldExport::MakeSequenceRefName( const OUString& rSeqName) { // generate foot-/endnote ID - OUStringBuffer aBuf; - aBuf.append("ref"); - aBuf.append(rSeqName); - aBuf.append(static_cast<sal_Int32>(nSeqNo)); - return aBuf.makeStringAndClear(); + return "ref" +rSeqName + OUString::number(static_cast<sal_Int32>(nSeqNo)); } |