vcl/source/gdi/animate.cxx|6 -
vcl/source/gdi/bitmap3.cxx| 196 +++---
vcl/source/gdi/bitmapex.cxx | 16 +--
vcl/source/gdi/bmpacc.cxx |8 -
vcl/source/gdi/bmpacc2.cxx|4
vcl/source/gdi/dibtools.cxx | 68 ++---
vcl/source/gdi/gdimtf.cxx | 28 ++---
vcl/source/gdi/impanmvw.cxx | 32 +++---
vcl/source/gdi/impgraph.cxx |4
vcl/source/gdi/impvect.cxx| 106 ++--
vcl/source/gdi/octree.cxx | 26 ++---
vcl/source/gdi/pdfwriter_impl.cxx | 10 -
vcl/source/gdi/print.cxx | 12 +-
vcl/source/gdi/print2.cxx | 32 +++---
vcl/source/gdi/region.cxx |4
vcl/source/gdi/regionband.cxx |8 -
vcl/source/gdi/salmisc.cxx| 42
vcl/source/gdi/svgdata.cxx|2
vcl/source/gdi/svmconverter.cxx | 10 -
19 files changed, 307 insertions(+), 307 deletions(-)
New commits:
commit 171201c574b325653794bcd851d0aa7a80dc3249
Author: e12346 <e12...@ce.pdn.ac.lk>
Date: Mon Aug 1 23:08:30 2016 +0530
tdf#96505 - Remove "long" integer literals in vcl/source/gdi/
Removed the "long" integer literals in "vcl/source/gdi/". Some literals are
left to match external methods
Change-Id: I55aa9bd2935bfd82c9c1cc5cd1efcc4b7c3d9346
Reviewed-on: https://gerrit.libreoffice.org/27784
Tested-by: Jenkins <c...@libreoffice.org>
Reviewed-by: Michael Stahl <mst...@redhat.com>
diff --git a/vcl/source/gdi/animate.cxx b/vcl/source/gdi/animate.cxx
index 225d1f7..c585e0a 100644
--- a/vcl/source/gdi/animate.cxx
+++ b/vcl/source/gdi/animate.cxx
@@ -27,8 +27,8 @@
#include "impanmvw.hxx"
-#define MIN_TIMEOUT 2L
-#define INC_TIMEOUT 0L
+#define MIN_TIMEOUT 2
+#define INC_TIMEOUT 0
sal_uLong Animation::mnAnimCount = 0UL;
@@ -336,7 +336,7 @@ void Animation::Draw( OutputDevice* pOut, const Point&
rDestPt, const Size& rDes
void Animation::ImplRestartTimer( sal_uLong nTimeout )
{
-maTimer.SetTimeout( std::max( nTimeout, (sal_uLong)(MIN_TIMEOUT + (
mnAnimCount - 1 ) * INC_TIMEOUT) ) * 10L );
+maTimer.SetTimeout( std::max( nTimeout, (sal_uLong)(MIN_TIMEOUT + (
mnAnimCount - 1 ) * INC_TIMEOUT) ) * 10 );
maTimer.Start();
}
diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx
index 32dd2cc..f4223fe 100644
--- a/vcl/source/gdi/bitmap3.cxx
+++ b/vcl/source/gdi/bitmap3.cxx
@@ -38,7 +38,7 @@
#include "BitmapScaleConvolution.hxx"
#define RGB15( _def_cR, _def_cG, _def_cB )
(((sal_uLong)(_def_cR)<<10UL)|((sal_uLong)(_def_cG)<<5UL)|(sal_uLong)(_def_cB))
-#define GAMMA( _def_cVal, _def_InvGamma ) ((sal_uInt8)MinMax(FRound(pow(
_def_cVal/255.0,_def_InvGamma)*255.0),0L,255L))
+#define GAMMA( _def_cVal, _def_InvGamma ) ((sal_uInt8)MinMax(FRound(pow(
_def_cVal/255.0,_def_InvGamma)*255.0),0,255))
#define CALC_ERRORS
\
nTemp = p1T[nX++] >> 12; \
@@ -363,9 +363,9 @@ bool Bitmap::ImplMakeMono( sal_uInt8 cThreshold )
if( pReadAcc->HasPalette() )
{
-for( long nY = 0L; nY < nHeight; nY++ )
+for( long nY = 0; nY < nHeight; nY++ )
{
-for( long nX = 0L; nX < nWidth; nX++ )
+for( long nX = 0; nX < nWidth; nX++ )
{
const sal_uInt8 cIndex = pReadAcc->GetPixelIndex( nY,
nX );
if( pReadAcc->GetPaletteColor( cIndex ).GetLuminance()
>=
@@ -380,9 +380,9 @@ bool Bitmap::ImplMakeMono( sal_uInt8 cThreshold )
}
else
{
-for( long nY = 0L; nY < nHeight; nY++ )
+for( long nY = 0; nY < nHeight; nY++ )
{
-for( long nX = 0L; nX < nWidth; nX++ )
+for( long nX = 0; nX < nWidth; nX++ )
{
if( pReadAcc->GetPixel( nY, nX ).GetLuminance() >=
cThreshold )
@@ -438,9 +438,9 @@ bool Bitmap::ImplMakeMonoDither()
if( pReadAcc->HasPalette() )
{
-for( long nY = 0L; nY < nHeight; nY++ )
+for( long nY = 0; nY < nHeight; nY++ )
{
-for( long nX = 0L, nModY = nY % 16; nX < nWidth; nX++ )
+for( long nX = 0, nModY = nY % 16; nX < nWidth; nX++ )
{
const sal_uInt8 cIndex = pReadAcc->GetPixelIndex( nY,
nX );
if( pReadAcc->GetPaletteColor( cIndex ).GetLuminance()
>
@@ -455,9 +455,9 @@ bool Bitmap::ImplMakeMonoDithe