diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-08-28 13:09:42 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-08-29 08:11:44 +0200 |
commit | 4d2a6906b3545ca3fc661bc7ac45c75d542cb47f (patch) | |
tree | 4448541fa7488d867493d62066d31678df2697a4 /starmath | |
parent | 74cfc763dc67c22d4f201a13ded41bb05150f9cf (diff) |
Directly use OUString(sal_Unicode) ctor
Change-Id: I9e17b7502db7543a9fa52dd3b480a7b66a80b870
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101580
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathmlexport.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx index d5753991396a..821144aa6a62 100644 --- a/starmath/source/mathmlexport.cxx +++ b/starmath/source/mathmlexport.cxx @@ -774,14 +774,12 @@ void SmXMLExport::ExportMath(const SmNode *pNode) AddAttribute(XML_NAMESPACE_MATH, XML_MATHVARIANT, XML_NORMAL); pMath.reset(new SvXMLElementExport(*this, XML_NAMESPACE_MATH, XML_MI, true, false)); } - sal_Unicode nArse[2]; - nArse[0] = pTemp->GetText()[0]; - sal_Unicode cTmp = ConvertMathToMathML( nArse[0] ); + sal_Unicode nArse = pTemp->GetText()[0]; + sal_Unicode cTmp = ConvertMathToMathML( nArse ); if (cTmp != 0) - nArse[0] = cTmp; - OSL_ENSURE(nArse[0] != 0xffff,"Non existent symbol"); - nArse[1] = 0; - GetDocHandler()->characters(nArse); + nArse = cTmp; + OSL_ENSURE(nArse != 0xffff,"Non existent symbol"); + GetDocHandler()->characters(OUString(nArse)); } void SmXMLExport::ExportText(const SmNode *pNode) |