summaryrefslogtreecommitdiff
path: root/basic/source/sbx/sbxvals.cxx
diff options
context:
space:
mode:
authorPhilipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM>2011-02-14 16:17:22 +0100
committerPhilipp Lohmann [pl] <Philipp.Lohmann@Oracle.COM>2011-02-14 16:17:22 +0100
commit1fb042333fe6287756ff1fac11d18cd7c150730d (patch)
tree595de5d187177832ce656d7832af9dce9dce2d99 /basic/source/sbx/sbxvals.cxx
parent5b3e910e926c7dd1e8dcfe8e0a5c6cb5bd17480a (diff)
parentcd0d6a5a6775f197fdb7e78b54c8133074a7a236 (diff)
rebase to DEV300_m100
Diffstat (limited to 'basic/source/sbx/sbxvals.cxx')
-rw-r--r--basic/source/sbx/sbxvals.cxx34
1 files changed, 17 insertions, 17 deletions
diff --git a/basic/source/sbx/sbxvals.cxx b/basic/source/sbx/sbxvals.cxx
index e63a352879ed..71a3bfc7f0d8 100644
--- a/basic/source/sbx/sbxvals.cxx
+++ b/basic/source/sbx/sbxvals.cxx
@@ -48,21 +48,21 @@ SbxValues::SbxValues( const BigInt &rBig ) : eType(SbxCURRENCY)
#pragma warning(disable: 4273)
#endif
-BOOL BigInt::INT64( SbxINT64 *p ) const
+sal_Bool BigInt::INT64( SbxINT64 *p ) const
{
if( bIsBig ) {
if( nLen > 4 || (nNum[3] & 0x8000) )
- return FALSE;
+ return sal_False;
- p->nLow = ((UINT32)nNum[1] << 16) | (UINT32)nNum[0];
- p->nHigh = ((UINT32)nNum[3] << 16) | (UINT32)nNum[2];
+ p->nLow = ((sal_uInt32)nNum[1] << 16) | (sal_uInt32)nNum[0];
+ p->nHigh = ((sal_uInt32)nNum[3] << 16) | (sal_uInt32)nNum[2];
if( bIsNeg )
p->CHS();
}
else
- p->Set( (INT32)nVal );
+ p->Set( (sal_Int32)nVal );
- return TRUE;
+ return sal_True;
}
BigInt::BigInt( const SbxINT64 &r )
@@ -72,28 +72,28 @@ BigInt::BigInt( const SbxINT64 &r )
*this = r.nHigh;
if( r.nHigh )
*this *= a10000;
- *this += (USHORT)(r.nLow >> 16);
+ *this += (sal_uInt16)(r.nLow >> 16);
*this *= a10000;
- *this += (USHORT)r.nLow;
+ *this += (sal_uInt16)r.nLow;
}
-BOOL BigInt::UINT64( SbxUINT64 *p ) const
+sal_Bool BigInt::UINT64( SbxUINT64 *p ) const
{
if( bIsBig ) {
if( bIsNeg || nLen > 4 )
- return FALSE;
+ return sal_False;
- p->nLow = ((UINT32)nNum[1] << 16) | (UINT32)nNum[0];
- p->nHigh = ((UINT32)nNum[3] << 16) | (UINT32)nNum[2];
+ p->nLow = ((sal_uInt32)nNum[1] << 16) | (sal_uInt32)nNum[0];
+ p->nHigh = ((sal_uInt32)nNum[3] << 16) | (sal_uInt32)nNum[2];
}
else {
if( nVal < 0 )
- return FALSE;
+ return sal_False;
- p->Set( (UINT32)nVal );
+ p->Set( (sal_uInt32)nVal );
}
- return TRUE;
+ return sal_True;
}
BigInt::BigInt( const SbxUINT64 &r )
@@ -103,7 +103,7 @@ BigInt::BigInt( const SbxUINT64 &r )
*this = BigInt(r.nHigh);
if( r.nHigh )
*this *= a10000;
- *this += (USHORT)(r.nLow >> 16);
+ *this += (sal_uInt16)(r.nLow >> 16);
*this *= a10000;
- *this += (USHORT)r.nLow;
+ *this += (sal_uInt16)r.nLow;
}