summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-06-29 09:09:05 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-30 07:01:41 +0000
commitfbd23182ee1804fd87a13d79a71e231549767408 (patch)
treeba2e1c8af7bcfc71908ae6a1858315e6547b3c73 /idl
parentf160d8c879b7184b2a41f2310a09c0432c14379a (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 'idl')
-rw-r--r--idl/inc/hash.hxx8
-rw-r--r--idl/source/cmptools/hash.cxx2
2 files changed, 3 insertions, 7 deletions
diff --git a/idl/inc/hash.hxx b/idl/inc/hash.hxx
index a2e923c88af8..6546ca79eb35 100644
--- a/idl/inc/hash.hxx
+++ b/idl/inc/hash.hxx
@@ -52,19 +52,16 @@ class SvStringHashEntry : public SvRefBase
{
friend class SvStringHashTable;
OString aName;
- sal_uInt32 nHashId;
sal_uLong nValue;
bool bHasId;
public:
SvStringHashEntry()
- : nHashId(0)
- , nValue(0)
+ : nValue(0)
, bHasId(false)
{
}
- SvStringHashEntry( const OString& rName, sal_uInt32 nIdx )
+ SvStringHashEntry( const OString& rName )
: aName(rName)
- , nHashId(nIdx)
, nValue(0)
, bHasId(true)
{
@@ -80,7 +77,6 @@ public:
SvStringHashEntry & operator = ( const SvStringHashEntry & rRef )
{ SvRefBase::operator=( rRef );
aName = rRef.aName;
- nHashId = rRef.nHashId;
nValue = rRef.nValue;
bHasId = rRef.bHasId;
return *this;
diff --git a/idl/source/cmptools/hash.cxx b/idl/source/cmptools/hash.cxx
index fc63730b0a94..a03f4cd60316 100644
--- a/idl/source/cmptools/hash.cxx
+++ b/idl/source/cmptools/hash.cxx
@@ -167,7 +167,7 @@ bool SvStringHashTable::Insert( const OString& rName, sal_uInt32 * pIndex )
return false;
if( !IsEntry( *pIndex ) )
- pEntries[ *pIndex ] = SvStringHashEntry( rName, *pIndex );
+ pEntries[ *pIndex ] = SvStringHashEntry( rName );
return true;
}