summaryrefslogtreecommitdiff
path: root/basegfx/source/tools/unotools.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-08 16:55:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-08 20:17:31 +0200
commit84cbd6a5434e119613d677370e7657ea77cd7767 (patch)
tree9dd079b3e9eeea70a89718ad918c488583c96d6c /basegfx/source/tools/unotools.cxx
parent44786fad67cf48f6091e868cf0476e754650d385 (diff)
clang-tidy modernize-use-emplace in b*
Change-Id: I51e0369ba2e1fe0b7c934531f71d3bda95ba09ec Reviewed-on: https://gerrit.libreoffice.org/42109 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx/source/tools/unotools.cxx')
-rw-r--r--basegfx/source/tools/unotools.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/basegfx/source/tools/unotools.cxx b/basegfx/source/tools/unotools.cxx
index 6b5b47ca9459..7e3309e09c79 100644
--- a/basegfx/source/tools/unotools.cxx
+++ b/basegfx/source/tools/unotools.cxx
@@ -200,12 +200,12 @@ namespace unotools
if(aBezier.isBezier())
{
// if one is used, add always two control points due to the old schema
- aPoints.push_back( awt::Point(fround(aBezier.getControlPointA().getX()),
- fround(aBezier.getControlPointA().getY())) );
+ aPoints.emplace_back(fround(aBezier.getControlPointA().getX()),
+ fround(aBezier.getControlPointA().getY()) );
aFlags.push_back(drawing::PolygonFlags_CONTROL);
- aPoints.push_back( awt::Point(fround(aBezier.getControlPointB().getX()),
- fround(aBezier.getControlPointB().getY())) );
+ aPoints.emplace_back(fround(aBezier.getControlPointB().getX()),
+ fround(aBezier.getControlPointB().getY()) );
aFlags.push_back(drawing::PolygonFlags_CONTROL);
}