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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user