diff options
Diffstat (limited to 'basic/source/sbx/sbxstr.cxx')
-rw-r--r-- | basic/source/sbx/sbxstr.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/basic/source/sbx/sbxstr.cxx b/basic/source/sbx/sbxstr.cxx index b4b73f79cc58..ebfc7a01c23b 100644 --- a/basic/source/sbx/sbxstr.cxx +++ b/basic/source/sbx/sbxstr.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -270,18 +270,18 @@ SbxArray* StringToByteArray(const ::rtl::OUString& rStr) pArray->unoAddDim( 0, -1 ); } - for( USHORT i=0; i< nArraySize; i++) + for( USHORT i=0; i< nArraySize; i++) { SbxVariable* pNew = new SbxVariable( SbxBYTE ); BYTE aByte = static_cast< BYTE >( i%2 ? ((*pSrc) >> 8) & 0xff : (*pSrc) & 0xff ); pNew->PutByte( aByte ); pNew->SetFlag( SBX_WRITE ); - pArray->Put( pNew, i ); + pArray->Put( pNew, i ); if( i%2 ) pSrc++; } return pArray; -} +} // Convert an array of bytes to string (2bytes per character) ::rtl::OUString ByteArrayToString(SbxArray* pArr) @@ -300,10 +300,10 @@ SbxArray* StringToByteArray(const ::rtl::OUString& rStr) } else { - aChar = aTempChar; + aChar = aTempChar; } } - + if( nCount%2 ) { aStrBuf.append(aChar); |