diff options
author | August Sodora <augsod@gmail.com> | 2011-11-26 02:03:23 -0500 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2011-11-28 14:56:40 +0100 |
commit | 13673b71bc9936d4a8c97f86c7d6f4e713839b40 (patch) | |
tree | 6e5e16fe30a0d118619d20a638b7f9a51e2bfc54 /basic | |
parent | b1447d64662cdf9c7d8b11a9075cd13dfb800d4e (diff) |
Remove uses of OUString::setCharAt
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/sbx/sbxcurr.cxx | 10 |
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; |