summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorAugust Sodora <augsod@gmail.com>2011-11-26 02:03:23 -0500
committerThorsten Behrens <tbehrens@suse.com>2011-11-28 14:56:40 +0100
commit13673b71bc9936d4a8c97f86c7d6f4e713839b40 (patch)
tree6e5e16fe30a0d118619d20a638b7f9a51e2bfc54 /basic
parentb1447d64662cdf9c7d8b11a9075cd13dfb800d4e (diff)
Remove uses of OUString::setCharAt
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxcurr.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/basic/source/sbx/sbxcurr.cxx b/basic/source/sbx/sbxcurr.cxx
index 5f2e89c27bcf..20a396813824 100644
--- a/basic/source/sbx/sbxcurr.cxx
+++ b/basic/source/sbx/sbxcurr.cxx
@@ -85,13 +85,13 @@ static rtl::OUString ImpCurrencyToString( const sal_Int64 &rVal )
for ( sal_Int32 charCpyIndex = aAbsStr.getLength() - 1; nInsertIndex >= nEndIndex; ++nDigitCount )
{
if ( nDigitCount == 4 )
- aBuf.setCharAt( nInsertIndex--, cDecimalSep );
+ aBuf[nInsertIndex--] = cDecimalSep;
#if MAYBEFUTURE
if ( nDigitCount > 4 && ! ( ( nDigitCount - 4 ) % 3) )
- aBuf.setCharAt( nInsertIndex--, cThousandSep );
+ aBuf[nInsertIndex--] = cThousandSep;
#endif
if ( nDigitCount < initialLen )
- aBuf.setCharAt( nInsertIndex--, aAbsStr[ charCpyIndex-- ] );
+ aBuf[nInsertIndex--] = aAbsStr[ charCpyIndex-- ];
else
// Handle leading 0's to right of decimal point
// Note: in VBA the stringification is a little more complex
@@ -104,10 +104,10 @@ static rtl::OUString ImpCurrencyToString( const sal_Int64 &rVal )
// 0 0.0000 0
// 0.1 0.1000 0.1
- aBuf.setCharAt( nInsertIndex--, (sal_Unicode)'0' );
+ aBuf[nInsertIndex--] = (sal_Unicode)'0';
}
if ( isNeg )
- aBuf.setCharAt( nInsertIndex, (sal_Unicode)'-' );
+ aBuf[nInsertIndex] = (sal_Unicode)'-';
aAbsStr = aBuf.makeStringAndClear();
return aAbsStr;