From d1f47efbc1cd38feaffa681a43624693dabccbc7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 22 Apr 2014 09:05:25 +0100 Subject: coverity#708203 Uninitialized scalar field Change-Id: Id72f198b69a319b93a67f2e98a706f4e45fc576f --- include/tools/bigint.hxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'include') 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; -- cgit