[Libreoffice-commits] core.git: rsc/source

2016-10-02 Thread e12346
 rsc/source/rsc/rsc.cxx |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 793dae3e90692467c0f111cf5b127209f7f522fa
Author: e12346 <e12...@ce.pdn.ac.lk>
Date:   Sun Oct 2 09:54:34 2016 +0530

tdf#100726 Improve readability of OUString concatination

fixed the bug on rsc/source/rsc/rsc.cxx

Change-Id: I0c1c92f63b8c18d3acbdcf74e7284a2dae19da44
Reviewed-on: https://gerrit.libreoffice.org/29451
Tested-by: Jenkins <c...@libreoffice.org>
Reviewed-by: Julien Nabet <serval2...@yahoo.fr>

diff --git a/rsc/source/rsc/rsc.cxx b/rsc/source/rsc/rsc.cxx
index 23e7deb..2fedf1a 100644
--- a/rsc/source/rsc/rsc.cxx
+++ b/rsc/source/rsc/rsc.cxx
@@ -617,8 +617,8 @@ ERRTYPE RscCompiler::Link()
 }
 catch (RscIoError&)
 {
-OString sMsg("Error with paths:\n");
-sMsg += "temporary rc file: " + aRcTmp + "\n"
+OString sMsg = "Error with paths:\n"
+"temporary rc file: " + aRcTmp + "\n"
 "temporary ilst file: " + aSysListTmp + "\n"
 "ilst file: " + aSysList + "\n";
 pTC->pEH->FatalError(ERR_OPENFILE, RscId(), sMsg.getStr());
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] core.git: vcl/source

2016-09-16 Thread e12346
 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