diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-16 16:27:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-17 11:25:21 +0200 |
commit | 2e8acde112e1c6754df26902e79a78346ba45a2d (patch) | |
tree | 2d836747a7aafdd0b64ab9aabf01be59e94745d4 /vcl/win/gdi | |
parent | 006a7b50546c57e260245d4630de565705f2fc38 (diff) |
remove UL/L suffixes from integer constants on the RHS of expressions
Change-Id: I899a8126c9d971601fea6c77eca165718aea0ac5
Reviewed-on: https://gerrit.libreoffice.org/41237
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/win/gdi')
-rw-r--r-- | vcl/win/gdi/salbmp.cxx | 6 | ||||
-rw-r--r-- | vcl/win/gdi/salgdi.cxx | 14 |
2 files changed, 10 insertions, 10 deletions
diff --git a/vcl/win/gdi/salbmp.cxx b/vcl/win/gdi/salbmp.cxx index 7ef19c97d6c3..c9216bfd0109 100644 --- a/vcl/win/gdi/salbmp.cxx +++ b/vcl/win/gdi/salbmp.cxx @@ -884,7 +884,7 @@ BitmapBuffer* WinSalBitmap::AcquireBuffer( BitmapAccessMode /*nMode*/ ) } else if( ( pBIH->biBitCount == 16 ) || ( pBIH->biBitCount == 32 ) ) { - sal_uLong nOffset = 0UL; + sal_uLong nOffset = 0; if( pBIH->biCompression == BI_BITFIELDS ) { @@ -982,7 +982,7 @@ void WinSalBitmap::ImplDecodeRLEBuffer( const BYTE* pSrcBuf, BYTE* pDstBuf, { nRunByte = *pRLE++; - if( nRunByte > 2UL ) + if( nRunByte > 2 ) { if( bRLE4 ) { @@ -1014,7 +1014,7 @@ void WinSalBitmap::ImplDecodeRLEBuffer( const BYTE* pSrcBuf, BYTE* pDstBuf, else if( !nRunByte ) { pDIB = ( pRow += nWidthAl ); - nX = 0UL; + nX = 0; } else if( nRunByte == 1 ) bEndDecoding = TRUE; diff --git a/vcl/win/gdi/salgdi.cxx b/vcl/win/gdi/salgdi.cxx index 0a85a3059ea5..ef9732c7f9fc 100644 --- a/vcl/win/gdi/salgdi.cxx +++ b/vcl/win/gdi/salgdi.cxx @@ -170,14 +170,14 @@ void ImplInitSalGDI() pBIH->biPlanes = 1; pBIH->biBitCount = 24; - for( n = 0; n < 256L; n++ ) + for( n = 0; n < 256; n++ ) pSalData->mpDitherDiff[ n ] = n - ( n & 248L ); - for( n = 0; n < 256L; n++ ) + for( n = 0; n < 256; n++ ) pSalData->mpDitherLow[ n ] = (BYTE) ( n & 248 ); - for( n = 0; n < 256L; n++ ) - pSalData->mpDitherHigh[ n ] = (BYTE) std::min( pSalData->mpDitherLow[ n ] + 8L, 255L ); + for( n = 0; n < 256; n++ ) + pSalData->mpDitherHigh[ n ] = (BYTE) std::min( pSalData->mpDitherLow[ n ] + 8, 255 ); } } else if ( (nRasterCaps & RC_PALETTE) && (nBitCount == 8) ) @@ -248,13 +248,13 @@ void ImplInitSalGDI() for( n = 0; n < nDitherPalCount; n++ ) pColors[ n ] = (short)( n + DITHER_MAX_SYSCOLOR ); - for( n = 0; n < 256L; n++ ) + for( n = 0; n < 256; n++ ) pSalData->mpDitherDiff[ n ] = n % 51L; - for( n = 0; n < 256L; n++ ) + for( n = 0; n < 256; n++ ) pSalData->mpDitherLow[ n ] = (BYTE) ( n / 51L ); - for( n = 0; n < 256L; n++ ) + for( n = 0; n < 256; n++ ) pSalData->mpDitherHigh[ n ] = (BYTE)std::min( pSalData->mpDitherLow[ n ] + 1, 5 ); } |