summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-05-03 14:09:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-05-03 15:32:53 +0200
commitc5a0b7af847a71fd50f713934b29305f8ce96c6b (patch)
treed7c0193bc183250c36e467f830a4327ab94dc24e /lotuswordpro
parentd19dbcc139d18771e5e20e82a694f1512476e41c (diff)
loplugin:stringadd improvement for appending numbers
I was wrong, the Concat framework already optimised appending numbers by stack-allocating small buffers, so include them in the plugin Change-Id: I922edbdde273c89abfe21d51c5d25dc01c97db25 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115037 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 fdc6b1113e97..e150e436b958 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(point.GetX()*1000).append(" ").append(point.GetY()*1000).append(" ");
+ str.append( OUString::number(point.GetX()*1000) + " " + OUString::number(point.GetY()*1000) + " ");
}
str.stripEnd(' ');
return str.makeStringAndClear();
diff --git a/lotuswordpro/source/filter/xfilter/xfdrawpolygon.cxx b/lotuswordpro/source/filter/xfilter/xfdrawpolygon.cxx
index d37e4f8a5848..d0e0239947af 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(x).append(" ").append(y).append(" ");
+ strPoints.append( OUString::number(x) + " " + OUString::number(y) + " ");
}
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 7a9bcdcad32a..6f5fb1a0f8a2 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(x).append(",").append(y).append(" ");
+ strPoints.append( OUString::number(x) + "," + OUString::number(y) + " ");
}
strPoints.stripEnd(' ');
pAttrList->AddAttribute( "draw:points", strPoints.makeStringAndClear());