[Libreoffice-commits] core.git: starmath/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Sat Aug 29 06:12:29 UTC 2020
starmath/source/mathmlexport.cxx | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
New commits:
commit 4d2a6906b3545ca3fc661bc7ac45c75d542cb47f
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Aug 28 13:09:42 2020 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sat Aug 29 08:11:44 2020 +0200
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 at redhat.com>
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)
More information about the Libreoffice-commits
mailing list