summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-11-02 14:32:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-11-03 07:54:12 +0100
commit6299c8cae923198c55d47320fa8a89bbcd5b0f2b (patch)
tree019ed8f1d754f92fb72c9ae4639ab671bae97018 /vcl
parentde39e35b21134e9a0f946aabe4859b16a62b248d (diff)
loplugin:constparams
Change-Id: Iebeb531fad5cc819b536788925cf8508737198b7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124599 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/backendtest/outputdevice/common.cxx2
-rw-r--r--vcl/inc/test/outputdevice.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/backendtest/outputdevice/common.cxx b/vcl/backendtest/outputdevice/common.cxx
index 8a5b80cb8dec..c8e291f787ec 100644
--- a/vcl/backendtest/outputdevice/common.cxx
+++ b/vcl/backendtest/outputdevice/common.cxx
@@ -720,7 +720,7 @@ tools::Polygon OutputDeviceTestCommon::createClosedBezierLoop(const tools::Recta
return aPolygon;
}
-basegfx::B2DPolygon OutputDeviceTestCommon::createOpenPolygon(tools::Rectangle& rRect, int nOffset)
+basegfx::B2DPolygon OutputDeviceTestCommon::createOpenPolygon(const tools::Rectangle& rRect, int nOffset)
{
int nMidOffset = rRect.GetWidth() / 2;
basegfx::B2DPolygon aPolygon{
diff --git a/vcl/inc/test/outputdevice.hxx b/vcl/inc/test/outputdevice.hxx
index c63c97a1e48c..e205dfb80909 100644
--- a/vcl/inc/test/outputdevice.hxx
+++ b/vcl/inc/test/outputdevice.hxx
@@ -71,7 +71,7 @@ public:
static tools::Polygon createDropShapePolygon();
static basegfx::B2DPolygon createHalfEllipsePolygon();
static tools::Polygon createClosedBezierLoop(const tools::Rectangle& rRect);
- static basegfx::B2DPolygon createOpenPolygon(tools::Rectangle& rRect, int nOffset = 4);
+ static basegfx::B2DPolygon createOpenPolygon(const tools::Rectangle& rRect, int nOffset = 4);
static void createHorizontalVerticalDiagonalLinePoints(tools::Rectangle rRect,
Point& rHorizontalLinePoint1, Point& rHorizontalLinePoint2,