clang-tidy: performance-unnecessary-copy-initialization in canvas

Change-Id: I1d08cfe979529614ab2c66702c33a9045b026f23
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176391
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2024-11-11 11:15:33 +02:00
parent aa48441b0b
commit 08ed26c3b8

View file

@ -421,7 +421,7 @@ constexpr OUStringLiteral PARAMETRICPOLYPOLYGON_IMPLEMENTATION_NAME = u"Canvas::
static cairo_pattern_t* patternFromParametricPolyPolygon( ::canvas::ParametricPolyPolygon const & rPolygon )
{
cairo_pattern_t* pPattern = nullptr;
const ::canvas::ParametricPolyPolygon::Values aValues = rPolygon.getValues();
const ::canvas::ParametricPolyPolygon::Values& aValues = rPolygon.getValues();
double x0, x1, y0, y1, cx, cy, r0, r1;
switch( aValues.meType )