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>
This commit is contained in:
Luv Sharma
2024-01-02 12:49:48 +05:30
committed by Hossein
parent 1e5fedf1a3
commit 54f2bd4534

View File

@@ -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);