diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-04 10:03:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-04 12:07:10 +0000 |
commit | 3afca328510a9ddaf67ca578af0cbce25fa44aec (patch) | |
tree | 8bef43d074139613bc5a516ba70a43e017278138 /vcl/win | |
parent | 071dcb5f6aaf7179619a251933dec8bbdc6f3cd8 (diff) |
loplugin:loopvartoosmall (clang-cl)
Change-Id: Ibdfdc5c66cf1e81d9e43c94df31120c476a78572
Reviewed-on: https://gerrit.libreoffice.org/36064
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/gdi/gdiimpl.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/win/gdi/gdiimpl.cxx b/vcl/win/gdi/gdiimpl.cxx index b51c2f700a7d..c2278538f582 100644 --- a/vcl/win/gdi/gdiimpl.cxx +++ b/vcl/win/gdi/gdiimpl.cxx @@ -73,7 +73,6 @@ void ImplRenderPath( HDC hdc, sal_uLong nPoints, const SalPoint* pPtAry, const P { if( nPoints ) { - sal_uInt16 i; // TODO: profile whether the following options are faster: // a) look ahead and draw consecutive bezier or line segments by PolyBezierTo/PolyLineTo resp. // b) convert our flag array to window's and use PolyDraw @@ -81,7 +80,7 @@ void ImplRenderPath( HDC hdc, sal_uLong nPoints, const SalPoint* pPtAry, const P MoveToEx( hdc, pPtAry->mnX, pPtAry->mnY, nullptr ); ++pPtAry; ++pFlgAry; - for( i=1; i<nPoints; ++i, ++pPtAry, ++pFlgAry ) + for( sal_uLong i=1; i<nPoints; ++i, ++pPtAry, ++pFlgAry ) { if( *pFlgAry != PolyFlags::Control ) { |