From b61e0f2b53448debace84083550be228da06c1a6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 8 Nov 2024 11:32:24 +0200 Subject: loplugin:reftotemp in canvas Change-Id: I0a038cf32e05dab59b1cedcf06ecd38b48d76feb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176257 Tested-by: Jenkins Reviewed-by: Noel Grandin --- canvas/source/opengl/ogl_canvastools.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'canvas/source/opengl/ogl_canvastools.cxx') diff --git a/canvas/source/opengl/ogl_canvastools.cxx b/canvas/source/opengl/ogl_canvastools.cxx index 97e7377c0a60..57aa686072b0 100644 --- a/canvas/source/opengl/ogl_canvastools.cxx +++ b/canvas/source/opengl/ogl_canvastools.cxx @@ -29,9 +29,9 @@ namespace oglcanvas ::basegfx::B2DPolyPolygon aPolyPoly(rPolyPoly); if( aPolyPoly.areControlPointsUsed() ) aPolyPoly = rPolyPoly.getDefaultAdaptiveSubdivision(); - const ::basegfx::B2DRange& rBounds(aPolyPoly.getB2DRange()); - const double nWidth=rBounds.getWidth(); - const double nHeight=rBounds.getHeight(); + const ::basegfx::B2DRange aBounds(aPolyPoly.getB2DRange()); + const double nWidth=aBounds.getWidth(); + const double nHeight=aBounds.getHeight(); const ::basegfx::triangulator::B2DTriangleVector rTriangulatedPolygon( ::basegfx::triangulator::triangulate(aPolyPoly)); -- cgit