diff options
author | Asela Dasanayaka <rukmal.tb@gmail.com> | 2016-08-03 12:15:51 +0530 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-08-24 12:16:55 +0000 |
commit | 9fcfe485cd23d7e560aa05efbd02401d62d144dd (patch) | |
tree | 1c39f689779ffbd7d75fe1b8c558b3bb122255ef /rsc/source | |
parent | a9bda90b3ad8ad8bb1e76c73e10df5c73607907f (diff) |
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 <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'rsc/source')
-rw-r--r-- | rsc/source/res/rscrange.cxx | 6 | ||||
-rw-r--r-- | rsc/source/tools/rscdef.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/rsc/source/res/rscrange.cxx b/rsc/source/res/rscrange.cxx index 9f7a73087f11..6e379ffdcc64 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 e7f5f444e5f7..be4ea3ff2477 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; } |