diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-11-29 02:19:30 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-11-30 00:47:32 +0100 |
commit | 6acfb0e75e1688d7af52a81dd070d97e5657ab4d (patch) | |
tree | adcb54e4424a6ef7843c98689ee4be4a51c7132d /vcl | |
parent | ae88bc4f53a7ad655e12dcbd932bed61ee6d8203 (diff) |
no need to declare variables before use
Change-Id: Ia732e283fa07ec5ece58e49dca2dcc5c61495109
Diffstat (limited to 'vcl')
-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 6de9a588ea70..cd97cdf08180 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -769,19 +769,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 ); |