summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorLuv Sharma <luvsharma.del@gmail.com>2024-01-02 12:49:48 +0530
committerHossein <hossein@libreoffice.org>2024-01-02 22:35:26 +0100
commit54f2bd45346c0e4a6331ddce5c23aec0c37b0dba (patch)
treeea70c072d901d17bd4d5b4d41a20bebb53364d3e /canvas
parent1e5fedf1a34e4609d4cf9f7fb70bc8797692d521 (diff)
tdf#145538 Use range based for loops
Change-Id: I0f028d48ccad4e1420e043eb0ab8aeab88ed0b88 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161533 Tested-by: Hossein <hossein@libreoffice.org> Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/opengl/ogl_canvascustomsprite.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/canvas/source/opengl/ogl_canvascustomsprite.cxx b/canvas/source/opengl/ogl_canvascustomsprite.cxx
index b8ee8a5cb807..0c03b4491037 100644
--- a/canvas/source/opengl/ogl_canvascustomsprite.cxx
+++ b/canvas/source/opengl/ogl_canvascustomsprite.cxx
@@ -193,9 +193,9 @@ namespace oglcanvas
::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(mxClip)));
glBegin(GL_TRIANGLES);
- for( size_t i=0; i<rTriangulatedPolygon.size(); i++ )
+ for(const auto& i : rTriangulatedPolygon)
{
- const::basegfx::triangulator::B2DTriangle& rCandidate(rTriangulatedPolygon[i]);
+ const::basegfx::triangulator::B2DTriangle& rCandidate(i);
glTexCoord2f(
rCandidate.getA().getX()/fWidth,
rCandidate.getA().getY()/fHeight);