summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-22 09:08:07 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-22 11:39:20 +0100
commitbe48b0eb62d730c3534c6950613e99157806d897 (patch)
tree7b7f4d34661befa28afb2cd923fc868bc69699fd /include
parent53d230c9e48ad3cf96c4cf6d8ed301cec906db01 (diff)
coverity#708205 Uninitialized scalar field
Change-Id: I9facdfaefcfa79c56b1db9e62b861cf425d5726f
Diffstat (limited to 'include')
-rw-r--r--include/tools/bigint.hxx18
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;