diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-22 09:05:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-22 11:39:20 +0100 |
commit | d1f47efbc1cd38feaffa681a43624693dabccbc7 (patch) | |
tree | 09364cccb27fbf0b5640d683ef64830b841ea9ff /include/tools | |
parent | 853f97410d005742d8c7093a721225069e104ac4 (diff) |
coverity#708203 Uninitialized scalar field
Change-Id: Id72f198b69a319b93a67f2e98a706f4e45fc576f
Diffstat (limited to 'include/tools')
-rw-r--r-- | include/tools/bigint.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/tools/bigint.hxx b/include/tools/bigint.hxx index 6d52b60a7a63..501d9860f903 100644 --- a/include/tools/bigint.hxx +++ b/include/tools/bigint.hxx @@ -61,7 +61,14 @@ public: BigInt(); BigInt( short nVal ); BigInt( long nVal ); - BigInt( int nVal ); + BigInt(int nValue) + : nVal(nValue) + , nLen(0) + , bIsNeg(false) + , bIsBig(false) + , bIsSet(true) + { + } BigInt( double nVal ); BigInt( sal_uInt16 nVal ); BigInt( sal_uInt32 nVal ); @@ -141,13 +148,6 @@ inline BigInt::BigInt( long nValue ) nVal = nValue; } -inline BigInt::BigInt( int nValue ) -{ - bIsSet = true; - bIsBig = false; - nVal = nValue; -} - inline BigInt::BigInt( sal_uInt16 nValue ) { bIsSet = true; |