summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-08-28 13:10:28 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-08-29 08:11:21 +0200
commit74cfc763dc67c22d4f201a13ded41bb05150f9cf (patch)
tree09c1febbfe86f3b18da9cd7b073e731994e95c7c /starmath
parente28a1c232377e6f04e0b6dfe8b2e30fe5341f1d9 (diff)
Use OUStringBuffer::makeStringAndClear
Change-Id: Ib7eebdee51facf642c6aca217135075cffe9bbe0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101581 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/mathmlexport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx
index 4805a9d7be30..d5753991396a 100644
--- a/starmath/source/mathmlexport.cxx
+++ b/starmath/source/mathmlexport.cxx
@@ -828,7 +828,7 @@ void SmXMLExport::ExportBlank(const SmNode *pNode)
OUStringBuffer sStrBuf;
::sax::Converter::convertDouble(sStrBuf, pTemp->GetBlankNum() * .5);
sStrBuf.append("em");
- AddAttribute(XML_NAMESPACE_MATH, XML_WIDTH, sStrBuf.getStr());
+ AddAttribute(XML_NAMESPACE_MATH, XML_WIDTH, sStrBuf.makeStringAndClear());
}
SvXMLElementExport aTextExport(*this, XML_NAMESPACE_MATH, XML_MSPACE,