From 74cfc763dc67c22d4f201a13ded41bb05150f9cf Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 28 Aug 2020 13:10:28 +0200 Subject: Use OUStringBuffer::makeStringAndClear Change-Id: Ib7eebdee51facf642c6aca217135075cffe9bbe0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101581 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- starmath/source/mathmlexport.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'starmath') 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, -- cgit