From d98f1e4e0373782ad71b945dcc92c1c3d6dcf6c8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 29 Jun 2018 12:25:02 +0200 Subject: 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 --- sfx2/source/bastyp/bitset.cxx | 3 --- 1 file changed, 3 deletions(-) (limited to 'sfx2/source') 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; } -- cgit