diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-19 10:52:20 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-02-19 11:23:57 +0000 |
commit | 778e9a65bf5af07c4caeff969a0324e43a78e66b (patch) | |
tree | a5204f0d3eaf2f512a627eeb9e74d42e7e80b54f /sc/inc/attrib.hxx | |
parent | 541c4c4509863beb7babe361b31e27f7295e3069 (diff) |
new loplugin: find write-only fields
Change-Id: I0f83939babacf92485420ee63f290a297d7cb717
Reviewed-on: https://gerrit.libreoffice.org/22498
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/inc/attrib.hxx')
-rw-r--r-- | sc/inc/attrib.hxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sc/inc/attrib.hxx b/sc/inc/attrib.hxx index 070f1f04a7de..7bab719aadc3 100644 --- a/sc/inc/attrib.hxx +++ b/sc/inc/attrib.hxx @@ -154,8 +154,7 @@ public: inline ScRangeItem( const sal_uInt16 nWhich ); inline ScRangeItem( const sal_uInt16 nWhich, - const ScRange& rRange, - const sal_uInt16 nNewFlags = 0 ); + const ScRange& rRange ); inline ScRangeItem( const ScRangeItem& rCpy ); inline ScRangeItem& operator=( const ScRangeItem &rCpy ); @@ -171,23 +170,21 @@ public: private: ScRange aRange; - sal_uInt16 nFlags; }; inline ScRangeItem::ScRangeItem( const sal_uInt16 nWhichP ) - : SfxPoolItem( nWhichP ), nFlags( SCR_INVALID ) // == invalid area + : SfxPoolItem( nWhichP ) { } inline ScRangeItem::ScRangeItem( const sal_uInt16 nWhichP, - const ScRange& rRange, - const sal_uInt16 nNew ) - : SfxPoolItem( nWhichP ), aRange( rRange ), nFlags( nNew ) + const ScRange& rRange ) + : SfxPoolItem( nWhichP ), aRange( rRange ) { } inline ScRangeItem::ScRangeItem( const ScRangeItem& rCpy ) - : SfxPoolItem( rCpy.Which() ), aRange( rCpy.aRange ), nFlags( rCpy.nFlags ) + : SfxPoolItem( rCpy.Which() ), aRange( rCpy.aRange ) {} inline ScRangeItem& ScRangeItem::operator=( const ScRangeItem &rCpy ) |