summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-29 12:25:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-02 08:47:48 +0200
commitd98f1e4e0373782ad71b945dcc92c1c3d6dcf6c8 (patch)
treea39deddf841d478d7baa5e96829891447383a597 /sfx2/source
parent683fa7b68673c8c6563ee493b8b5682bb6fd1b8a (diff)
loplugin:unusedfields improve checking for write-only fields
we trade off a little accuracy for finding more possible write-only fields. Change-Id: I9f7edba99481fe4ded0a9d8e45e911b0ee99d269 Reviewed-on: https://gerrit.libreoffice.org/56715 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/bastyp/bitset.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/sfx2/source/bastyp/bitset.cxx b/sfx2/source/bastyp/bitset.cxx
index 495909f8f14b..9dc18f3e5c04 100644
--- a/sfx2/source/bastyp/bitset.cxx
+++ b/sfx2/source/bastyp/bitset.cxx
@@ -37,7 +37,6 @@ IndexBitSet& IndexBitSet::operator-=(sal_uInt16 nBit)
if ( pBitmap[nBlock] & nBitVal )
{
pBitmap[nBlock] &= ~nBitVal;
- --nCount;
}
return *this;
@@ -66,7 +65,6 @@ IndexBitSet& IndexBitSet::operator|=( sal_uInt16 nBit )
if ( (pBitmap[nBlock] & nBitVal) == 0 )
{
pBitmap[nBlock] |= nBitVal;
- ++nCount;
}
return *this;
@@ -87,7 +85,6 @@ bool IndexBitSet::Contains( sal_uInt16 nBit ) const
IndexBitSet::IndexBitSet()
{
- nCount = 0;
nBlocks = 0;
}