summaryrefslogtreecommitdiff
path: root/basic/source/sbx/sbxstr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basic/source/sbx/sbxstr.cxx')
-rw-r--r--basic/source/sbx/sbxstr.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/basic/source/sbx/sbxstr.cxx b/basic/source/sbx/sbxstr.cxx
index b4156a116ddc..3a73c2757579 100644
--- a/basic/source/sbx/sbxstr.cxx
+++ b/basic/source/sbx/sbxstr.cxx
@@ -154,9 +154,9 @@ using namespace rtl;
XubString aRes;
aTmp.eType = SbxSTRING;
if( p->eType == SbxDOUBLE )
- ImpPutDouble( &aTmp, p->nDouble, /*bCoreString=*/TRUE );
+ ImpPutDouble( &aTmp, p->nDouble, /*bCoreString=*/sal_True );
else
- ImpPutDouble( &aTmp, *p->pDouble, /*bCoreString=*/TRUE );
+ ImpPutDouble( &aTmp, *p->pDouble, /*bCoreString=*/sal_True );
return aRes;
}
else
@@ -234,7 +234,7 @@ void ImpPutString( SbxValues* p, const ::rtl::OUString* n )
case SbxBYREF | SbxINTEGER:
*p->pInteger = ImpGetInteger( p ); break;
case SbxBYREF | SbxBOOL:
- *p->pUShort = sal::static_int_cast< UINT16 >( ImpGetBool( p ) );
+ *p->pUShort = sal::static_int_cast< sal_uInt16 >( ImpGetBool( p ) );
break;
case SbxBYREF | SbxERROR:
case SbxBYREF | SbxUSHORT:
@@ -276,10 +276,10 @@ SbxArray* StringToByteArray(const ::rtl::OUString& rStr)
pArray->unoAddDim( 0, -1 );
}
- for( USHORT i=0; i< nArraySize; i++)
+ for( sal_uInt16 i=0; i< nArraySize; i++)
{
SbxVariable* pNew = new SbxVariable( SbxBYTE );
- BYTE aByte = static_cast< BYTE >( i%2 ? ((*pSrc) >> 8) & 0xff : (*pSrc) & 0xff );
+ sal_uInt8 aByte = static_cast< sal_uInt8 >( i%2 ? ((*pSrc) >> 8) & 0xff : (*pSrc) & 0xff );
pNew->PutByte( aByte );
pNew->SetFlag( SBX_WRITE );
pArray->Put( pNew, i );
@@ -292,10 +292,10 @@ SbxArray* StringToByteArray(const ::rtl::OUString& rStr)
// Convert an array of bytes to string (2bytes per character)
::rtl::OUString ByteArrayToString(SbxArray* pArr)
{
- USHORT nCount = pArr->Count();
+ sal_uInt16 nCount = pArr->Count();
OUStringBuffer aStrBuf;
sal_Unicode aChar = 0;
- for( USHORT i = 0 ; i < nCount ; i++ )
+ for( sal_uInt16 i = 0 ; i < nCount ; i++ )
{
sal_Unicode aTempChar = pArr->Get(i)->GetByte();
if( i%2 )