diff options
author | Noel Grandin <noel@peralex.com> | 2016-06-29 09:09:05 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-30 07:01:41 +0000 |
commit | fbd23182ee1804fd87a13d79a71e231549767408 (patch) | |
tree | ba2e1c8af7bcfc71908ae6a1858315e6547b3c73 /include/editeng | |
parent | f160d8c879b7184b2a41f2310a09c0432c14379a (diff) |
loplugin:unusedfields
Change-Id: If06fffa8db050df0f9c1c7da6163575bf522382e
Reviewed-on: https://gerrit.libreoffice.org/26754
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/editeng')
-rw-r--r-- | include/editeng/numitem.hxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/editeng/numitem.hxx b/include/editeng/numitem.hxx index 2d67dd1b27e4..13ffac063128 100644 --- a/include/editeng/numitem.hxx +++ b/include/editeng/numitem.hxx @@ -315,11 +315,10 @@ public: class SvxNodeNum { sal_uInt16 nLevelVal[ SVX_MAX_NUM ]; // Numbers of all levels - sal_uInt16 nSetValue; // predetermined number - sal_uInt8 nMyLevel; // Current Level + sal_uInt8 nMyLevel; // Current Level public: - explicit inline SvxNodeNum( sal_uInt16 nSetVal = USHRT_MAX ); + explicit inline SvxNodeNum(); inline SvxNodeNum& operator=( const SvxNodeNum& rCpy ); sal_uInt8 GetLevel() const { return nMyLevel; } @@ -329,8 +328,8 @@ public: sal_uInt16* GetLevelVal() { return nLevelVal; } }; -SvxNodeNum::SvxNodeNum( sal_uInt16 nSetVal ) - : nSetValue( nSetVal ), nMyLevel( 0 ) +SvxNodeNum::SvxNodeNum() + : nMyLevel( 0 ) { memset( nLevelVal, 0, sizeof( nLevelVal ) ); } @@ -339,7 +338,6 @@ inline SvxNodeNum& SvxNodeNum::operator=( const SvxNodeNum& rCpy ) { if ( &rCpy != this) { - nSetValue = rCpy.nSetValue; nMyLevel = rCpy.nMyLevel; memcpy( nLevelVal, rCpy.nLevelVal, sizeof( nLevelVal ) ); |