summaryrefslogtreecommitdiff
path: root/include/tools
diff options
context:
space:
mode:
Diffstat (limited to 'include/tools')
-rw-r--r--include/tools/bigint.hxx47
1 files changed, 25 insertions, 22 deletions
diff --git a/include/tools/bigint.hxx b/include/tools/bigint.hxx
index 387d663639f0..e90f91b5dce2 100644
--- a/include/tools/bigint.hxx
+++ b/include/tools/bigint.hxx
@@ -58,7 +58,14 @@ private:
TOOLS_DLLPRIVATE bool ABS_IsLess(BigInt const &) const;
public:
- BigInt();
+ BigInt()
+ : nVal(0)
+ , nLen(0)
+ , bIsNeg(false)
+ , bIsBig(false)
+ , bIsSet(false)
+ {
+ }
BigInt(short nValue)
: nVal(nValue)
@@ -86,14 +93,24 @@ public:
, bIsSet(true)
{
}
- BigInt( double nVal );
- BigInt( sal_uInt16 nVal );
- BigInt( sal_uInt32 nVal );
- BigInt( const BigInt& rBigInt );
- BigInt( const OUString& rString );
+
+ BigInt( double nVal );
+
+ BigInt(sal_uInt16 nValue)
+ : nVal(nValue)
+ , nLen(0)
+ , bIsNeg(false)
+ , bIsBig(false)
+ , bIsSet(true)
+ {
+ }
+
+ BigInt( sal_uInt32 nVal );
+ BigInt( const BigInt& rBigInt );
+ BigInt( const OUString& rString );
#ifdef _TLBIGINT_INT64
- BigInt( const SbxINT64 &r );
- BigInt( const SbxUINT64 &r );
+ BigInt( const SbxINT64 &r );
+ BigInt( const SbxUINT64 &r );
#endif
operator short() const;
@@ -144,20 +161,6 @@ public:
friend class Fraction;
};
-inline BigInt::BigInt()
-{
- bIsSet = false;
- bIsBig = false;
- nVal = 0;
-}
-
-inline BigInt::BigInt( sal_uInt16 nValue )
-{
- bIsSet = true;
- bIsBig = false;
- nVal = nValue;
-}
-
inline BigInt::operator short() const
{
if ( !bIsBig && nVal >= SHRT_MIN && nVal <= SHRT_MAX )