summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-06 20:29:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-08 06:34:07 +0200
commitbd7cf3915964ba80786e2ae77b33fc654fde1f31 (patch)
treea153eee4572d794f391c61ba487e05772acb81cc /vcl/unx
parent93115d2c54d645bcf2f80fde325e3ede39dee4d5 (diff)
loplugin:moveparam in vcl
Change-Id: Ic43e02576454e3ee174304db350659dd113a1d5f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123186 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/generic/gdi/gdiimpl.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/unx/generic/gdi/gdiimpl.cxx b/vcl/unx/generic/gdi/gdiimpl.cxx
index ceeaa1d55203..53226821b4a1 100644
--- a/vcl/unx/generic/gdi/gdiimpl.cxx
+++ b/vcl/unx/generic/gdi/gdiimpl.cxx
@@ -1602,7 +1602,7 @@ private:
public:
SystemDependentData_Triangulation(
basegfx::SystemDependentDataManager& rSystemDependentDataManager,
- const basegfx::triangulator::B2DTriangleVector& rTriangles,
+ basegfx::triangulator::B2DTriangleVector&& rTriangles,
double fLineWidth,
basegfx::B2DLineJoin eJoin,
css::drawing::LineCap eCap,
@@ -1624,14 +1624,14 @@ public:
SystemDependentData_Triangulation::SystemDependentData_Triangulation(
basegfx::SystemDependentDataManager& rSystemDependentDataManager,
- const basegfx::triangulator::B2DTriangleVector& rTriangles,
+ basegfx::triangulator::B2DTriangleVector&& rTriangles,
double fLineWidth,
basegfx::B2DLineJoin eJoin,
css::drawing::LineCap eCap,
double fMiterMinimumAngle,
const std::vector< double >* pStroke)
: basegfx::SystemDependentData(rSystemDependentDataManager),
- maTriangles(rTriangles),
+ maTriangles(std::move(rTriangles)),
mfLineWidth(fLineWidth),
meJoin(eJoin),
meCap(eCap),
@@ -1824,7 +1824,7 @@ bool X11SalGraphicsImpl::drawPolyLine(
// validity (see above)
pSystemDependentData_Triangulation = rPolygon.addOrReplaceSystemDependentData<SystemDependentData_Triangulation>(
ImplGetSystemDependentDataManager(),
- aTriangles,
+ std::move(aTriangles),
fLineWidth,
eLineJoin,
eLineCap,