summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorudareechk <udareeck@gmail.com>2017-09-21 01:30:46 +0530
committerMichael Stahl <mstahl@redhat.com>2017-10-23 16:51:09 +0200
commit022b1b2a40fcaf8d201081dead44c1d3346d1972 (patch)
treeceb0671118004125c35c157978080adbd93edcaf /sfx2
parentf68c1a0f03b974839b02cbff400f1a2785489c87 (diff)
tdf#96505 Get rid of cargo cult long integer literals
Removed 0L, 1L and 2L Change-Id: Icb38de1cdd8e1215a86118b0c8af993025fd790e Reviewed-on: https://gerrit.libreoffice.org/42567 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/bastyp/bitset.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/bastyp/bitset.cxx b/sfx2/source/bastyp/bitset.cxx
index 66dbcf2b7db3..49a6a75dac0f 100644
--- a/sfx2/source/bastyp/bitset.cxx
+++ b/sfx2/source/bastyp/bitset.cxx
@@ -29,7 +29,7 @@
IndexBitSet& IndexBitSet::operator-=(sal_uInt16 nBit)
{
sal_uInt16 nBlock = nBit / 32;
- sal_uInt32 nBitVal = 1L << (nBit % 32);
+ sal_uInt32 nBitVal = 1 << (nBit % 32);
if ( nBlock >= nBlocks )
return *this;
@@ -48,7 +48,7 @@ IndexBitSet& IndexBitSet::operator-=(sal_uInt16 nBit)
IndexBitSet& IndexBitSet::operator|=( sal_uInt16 nBit )
{
sal_uInt16 nBlock = nBit / 32;
- sal_uInt32 nBitVal = 1L << (nBit % 32);
+ sal_uInt32 nBitVal = 1 << (nBit % 32);
if ( nBlock >= nBlocks )
{
@@ -78,7 +78,7 @@ IndexBitSet& IndexBitSet::operator|=( sal_uInt16 nBit )
bool IndexBitSet::Contains( sal_uInt16 nBit ) const
{
sal_uInt16 nBlock = nBit / 32;
- sal_uInt32 nBitVal = 1L << (nBit % 32);
+ sal_uInt32 nBitVal = 1 << (nBit % 32);
if ( nBlock >= nBlocks )
return false;