summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-04-21 13:48:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-22 21:42:14 +0200
commit75997f13ee3a71d6c994392264b0190bd7bb6756 (patch)
tree4dc35a2e62e41d4b1f7953367419ff3fb072635f /starmath
parentb546af03ab9e371c70ce72562bc0a492972a8585 (diff)
no need to create temporaries when appending number to O[U]StringBuffer
Change-Id: I36d82423b5f75010552696a66cec7e53ee265ce4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114395 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/mathml/mathmlexport.cxx2
-rw-r--r--starmath/source/mathtype.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/mathml/mathmlexport.cxx b/starmath/source/mathml/mathmlexport.cxx
index e6de9b285f4c..7338e7a400a2 100644
--- a/starmath/source/mathml/mathmlexport.cxx
+++ b/starmath/source/mathml/mathmlexport.cxx
@@ -473,7 +473,7 @@ void SmXMLExport::ExportContent_()
if (nSmSyntaxVersion == 5)
sStrBuf.append(u"5.0");
else
- sStrBuf.append(OUString::number(nSmSyntaxVersion));
+ sStrBuf.append(static_cast<sal_Int32>(nSmSyntaxVersion));
AddAttribute(XML_NAMESPACE_MATH, XML_ENCODING, sStrBuf.makeStringAndClear());
SvXMLElementExport aAnnotation(*this, XML_NAMESPACE_MATH, XML_ANNOTATION, true, false);
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index 10250bbb22aa..6a3147d2f817 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -1815,7 +1815,7 @@ bool MathType::HandleSize(sal_Int16 nLstSize,sal_Int16 nDefSize, int &rSetSize)
{
nLastSize = nCurSize;
rRet.append(" size ");
- rRet.append(OUString::number(-nLstSize/32));
+ rRet.append(static_cast<sal_Int32>(-nLstSize/32));
rRet.append("{");
bRet=true;
rSetSize++;
@@ -1844,7 +1844,7 @@ bool MathType::HandleSize(sal_Int16 nLstSize,sal_Int16 nDefSize, int &rSetSize)
{
nLastSize = nCurSize;
rRet.append(" size ");
- rRet.append(OUString::number(nLstSize));
+ rRet.append(static_cast<sal_Int32>(nLstSize));
rRet.append("{");
bRet=true;
rSetSize++;