summaryrefslogtreecommitdiff
path: root/lotuswordpro
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 /lotuswordpro
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 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/xfilter/xfdrawpath.cxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfdrawpolygon.cxx2
-rw-r--r--lotuswordpro/source/filter/xfilter/xfdrawpolyline.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/xfilter/xfdrawpath.cxx b/lotuswordpro/source/filter/xfilter/xfdrawpath.cxx
index a356ea5ef56e..fdc6b1113e97 100644
--- a/lotuswordpro/source/filter/xfilter/xfdrawpath.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfdrawpath.cxx
@@ -72,7 +72,7 @@ OUString XFSvgPathEntry::ToString()
for (auto const& point : m_aPoints)
{
- str.append(OUString::number(point.GetX()*1000)).append(" ").append(OUString::number(point.GetY()*1000)).append(" ");
+ str.append(point.GetX()*1000).append(" ").append(point.GetY()*1000).append(" ");
}
str.stripEnd(' ');
return str.makeStringAndClear();
diff --git a/lotuswordpro/source/filter/xfilter/xfdrawpolygon.cxx b/lotuswordpro/source/filter/xfilter/xfdrawpolygon.cxx
index c499f8800525..d37e4f8a5848 100644
--- a/lotuswordpro/source/filter/xfilter/xfdrawpolygon.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfdrawpolygon.cxx
@@ -83,7 +83,7 @@ void XFDrawPolygon::ToXml(IXFStream *pStrm)
{
double x = (point.GetX()-rect.GetX())*1000;
double y = (point.GetY()-rect.GetY())*1000;
- strPoints.append(OUString::number(x)).append(" ").append(OUString::number(y)).append(" ");
+ strPoints.append(x).append(" ").append(y).append(" ");
}
strPoints.stripEnd(' ');
pAttrList->AddAttribute( "draw:points", strPoints.makeStringAndClear());
diff --git a/lotuswordpro/source/filter/xfilter/xfdrawpolyline.cxx b/lotuswordpro/source/filter/xfilter/xfdrawpolyline.cxx
index ed1ec06915c8..7a9bcdcad32a 100644
--- a/lotuswordpro/source/filter/xfilter/xfdrawpolyline.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfdrawpolyline.cxx
@@ -83,7 +83,7 @@ void XFDrawPolyline::ToXml(IXFStream *pStrm)
{
double x = (point.GetX()-rect.GetX())*1000;
double y = (point.GetY()-rect.GetY())*1000;
- strPoints.append(OUString::number(x)).append(",").append(OUString::number(y)).append(" ");
+ strPoints.append(x).append(",").append(y).append(" ");
}
strPoints.stripEnd(' ');
pAttrList->AddAttribute( "draw:points", strPoints.makeStringAndClear());