rsc/source/res/rscrange.cxx | 6 +++--- rsc/source/tools/rscdef.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
New commits: commit 9fcfe485cd23d7e560aa05efbd02401d62d144dd Author: Asela Dasanayaka <rukmal...@gmail.com> Date: Wed Aug 3 12:15:51 2016 +0530 tdf#96505 get rid of "long" integer literals 'L' Remove L from integer literals in module rsc all OL and 1L Change-Id: I4a47fead01c2e7f1febc5299eb0905ecf14cee2a Reviewed-on: https://gerrit.libreoffice.org/27818 Reviewed-by: Tor Lillqvist <t...@collabora.com> Tested-by: Tor Lillqvist <t...@collabora.com> diff --git a/rsc/source/res/rscrange.cxx b/rsc/source/res/rscrange.cxx index 9f7a730..6e379ff 100644 --- a/rsc/source/res/rscrange.cxx +++ b/rsc/source/res/rscrange.cxx @@ -100,8 +100,8 @@ RSCINST RscRange::Create( RSCINST * pInst, const RSCINST & rDflt, memmove( aInst.pData, rDflt.pData, sizeof( RscRangeInst ) ); else { - if( 0L >= nMin && 0L <= nMax ) - reinterpret_cast<RscRangeInst *>(aInst.pData)->nValue = (sal_uInt16)(0L - nMin); + if( 0 >= nMin && 0 <= nMax ) + reinterpret_cast<RscRangeInst *>(aInst.pData)->nValue = (sal_uInt16)(0 - nMin); else reinterpret_cast<RscRangeInst *>(aInst.pData)->nValue = 0; @@ -211,7 +211,7 @@ RSCINST RscLongRange::Create( RSCINST * pInst, const RSCINST & rDflt, else { sal_Int32 lDflt; - if( 0L >= nMin && 0L <= nMax ) + if( 0 >= nMin && 0 <= nMax ) lDflt = 0; else lDflt = nMin; diff --git a/rsc/source/tools/rscdef.cxx b/rsc/source/tools/rscdef.cxx index e7f5f44..be4ea3f 100644 --- a/rsc/source/tools/rscdef.cxx +++ b/rsc/source/tools/rscdef.cxx @@ -301,7 +301,7 @@ bool RscExpression::Evaluate( sal_Int32 * plValue ) *plValue = lLeft << lRight; else { - if( 0L == lRight ) + if( 0 == lRight ) return false; *plValue = lLeft / lRight; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits