Kaydet (Commit) a0d5d573 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#707930 Uninitialized scalar field

Change-Id: Ib652a8a1f81dde1f5ac3b6b7b73376c73777247c
üst ea334ca0
...@@ -56,12 +56,19 @@ friend class SvStringHashTable; ...@@ -56,12 +56,19 @@ friend class SvStringHashTable;
sal_uLong nValue; sal_uLong nValue;
sal_Bool bHasId; sal_Bool bHasId;
public: public:
SvStringHashEntry() : bHasId( sal_False ) {;} SvStringHashEntry()
: nHashId(0)
, nValue(0)
, bHasId(false)
{
}
SvStringHashEntry( const OString& rName, sal_uInt32 nIdx ) SvStringHashEntry( const OString& rName, sal_uInt32 nIdx )
: aName( rName ) : aName(rName)
, nHashId( nIdx ) , nHashId(nIdx)
, nValue( 0 ) , nValue(0)
, bHasId( sal_True ) {} , bHasId(true)
{
}
~SvStringHashEntry(); ~SvStringHashEntry();
const OString& GetName() const { return aName; } const OString& GetName() const { return aName; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment