diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-11-29 02:19:30 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-12-02 15:47:27 +0100 |
commit | 48839de90f977304546d96f379ed9b451e4d4789 (patch) | |
tree | 43c080d458add97ea38506b5fa12117b01d28d9c | |
parent | 160598daa0f859c6adc7c6ba82c990440414dd85 (diff) |
no need to declare variables before use
Change-Id: Ia732e283fa07ec5ece58e49dca2dcc5c61495109
-rw-r--r-- | vcl/opengl/gdiimpl.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index 1088b41a4670..da09a614348e 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -771,19 +771,18 @@ void OpenGLSalGraphicsImpl::DrawPolygon( sal_uInt32 nPoints, const SalPoint* pPt void OpenGLSalGraphicsImpl::DrawPolyPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon ) { - sal_uInt32 i, j; ::std::vector< GLfloat > aVertices; GLfloat nWidth = GetWidth(); GLfloat nHeight = GetHeight(); const ::basegfx::B2DPolyPolygon& aSimplePolyPolygon = ::basegfx::tools::solveCrossovers( rPolyPolygon ); - for( i = 0; i < aSimplePolyPolygon.count(); i++ ) + for( sal_uInt32 i = 0; i < aSimplePolyPolygon.count(); i++ ) { const basegfx::B2DPolygon& rPolygon( aSimplePolyPolygon.getB2DPolygon( i ) ); const ::basegfx::B2DPolygon& aResult( ::basegfx::triangulator::triangulate( rPolygon ) ); - for( j = 0; j < aResult.count(); j++ ) + for( sal_uInt32 j = 0; j < aResult.count(); j++ ) { const ::basegfx::B2DPoint& rPt( aResult.getB2DPoint( j ) ); aVertices.push_back( 2 * rPt.getX() / nWidth - 1.0f ); |