diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-22 09:08:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-22 11:39:20 +0100 |
commit | be48b0eb62d730c3534c6950613e99157806d897 (patch) | |
tree | 7b7f4d34661befa28afb2cd923fc868bc69699fd /include | |
parent | 53d230c9e48ad3cf96c4cf6d8ed301cec906db01 (diff) |
coverity#708205 Uninitialized scalar field
Change-Id: I9facdfaefcfa79c56b1db9e62b861cf425d5726f
Diffstat (limited to 'include')
-rw-r--r-- | include/tools/bigint.hxx | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/include/tools/bigint.hxx b/include/tools/bigint.hxx index 095f75663181..387d663639f0 100644 --- a/include/tools/bigint.hxx +++ b/include/tools/bigint.hxx @@ -59,7 +59,16 @@ private: public: BigInt(); - BigInt( short nVal ); + + BigInt(short nValue) + : nVal(nValue) + , nLen(0) + , bIsNeg(false) + , bIsBig(false) + , bIsSet(true) + { + } + BigInt(long nValue) : nVal(nValue) , nLen(0) @@ -142,13 +151,6 @@ inline BigInt::BigInt() nVal = 0; } -inline BigInt::BigInt( short nValue ) -{ - bIsSet = true; - bIsBig = false; - nVal = nValue; -} - inline BigInt::BigInt( sal_uInt16 nValue ) { bIsSet = true; |