diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-26 21:58:10 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-26 21:58:10 +0100 |
commit | 3ef509a1d9236c6c71e7baa5f7ca7f0a2780fea1 (patch) | |
tree | 3b4a7a4352b7563a5a6bcf9f23add0039787f945 /canvas | |
parent | 8b7036450f46c87f0b6f9ac40ccd69d5a57cac55 (diff) |
loplugin:loopvartoosmall
Change-Id: I4dce711021557e6e0b1fb661285d32292b0478b6
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/vcl/canvasbitmaphelper.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/canvas/source/vcl/canvasbitmaphelper.cxx b/canvas/source/vcl/canvasbitmaphelper.cxx index e9754dc2850d..0ca9e3d9a84a 100644 --- a/canvas/source/vcl/canvasbitmaphelper.cxx +++ b/canvas/source/vcl/canvasbitmaphelper.cxx @@ -152,13 +152,13 @@ namespace vclcanvas sal_Int8* pRes = aRes.getArray(); int nCurrPos(0); - for( int y=rect.Y1; + for( long y=rect.Y1; y<aBmpSize.Height() && y<rect.Y2; ++y ) { if( pAlphaReadAccess.get() != nullptr ) { - for( int x=rect.X1; + for( long x=rect.X1; x<aBmpSize.Width() && x<rect.X2; ++x ) { @@ -170,7 +170,7 @@ namespace vclcanvas } else { - for( int x=rect.X1; + for( long x=rect.X1; x<aBmpSize.Width() && x<rect.X2; ++x ) { @@ -230,8 +230,8 @@ namespace vclcanvas const Size aBmpSize( aBitmap.GetSizePixel() ); // for the time being, always read as BGRA - int x, y, nCurrPos(0); - for( y=rect.Y1; + int nCurrPos(0); + for( long y=rect.Y1; y<aBmpSize.Height() && y<rect.Y2; ++y ) { @@ -244,7 +244,7 @@ namespace vclcanvas Scanline pScan = pWriteAccess->GetScanline( y ); Scanline pAScan = pAlphaWriteAccess->GetScanline( y ); - for( x=rect.X1; + for( long x=rect.X1; x<aBmpSize.Width() && x<rect.X2; ++x ) { @@ -267,7 +267,7 @@ namespace vclcanvas Scanline pScan = pWriteAccess->GetScanline( y ); Scanline pAScan = pAlphaWriteAccess->GetScanline( y ); - for( x=rect.X1; + for( long x=rect.X1; x<aBmpSize.Width() && x<rect.X2; ++x ) { @@ -289,7 +289,7 @@ namespace vclcanvas Scanline pScan = pWriteAccess->GetScanline( y ); Scanline pAScan = pAlphaWriteAccess->GetScanline( y ); - for( x=rect.X1; + for( long x=rect.X1; x<aBmpSize.Width() && x<rect.X2; ++x ) { @@ -308,7 +308,7 @@ namespace vclcanvas default: { - for( x=rect.X1; + for( long x=rect.X1; x<aBmpSize.Width() && x<rect.X2; ++x ) { @@ -337,7 +337,7 @@ namespace vclcanvas { Scanline pScan = pWriteAccess->GetScanline( y ); - for( x=rect.X1; + for( long x=rect.X1; x<aBmpSize.Width() && x<rect.X2; ++x ) { @@ -355,7 +355,7 @@ namespace vclcanvas { Scanline pScan = pWriteAccess->GetScanline( y ); - for( x=rect.X1; + for( long x=rect.X1; x<aBmpSize.Width() && x<rect.X2; ++x ) { @@ -372,7 +372,7 @@ namespace vclcanvas { Scanline pScan = pWriteAccess->GetScanline( y ); - for( x=rect.X1; + for( long x=rect.X1; x<aBmpSize.Width() && x<rect.X2; ++x ) { @@ -387,7 +387,7 @@ namespace vclcanvas default: { - for( x=rect.X1; + for( long x=rect.X1; x<aBmpSize.Width() && x<rect.X2; ++x ) { |