diff options
author | August Sodora <augsod@gmail.com> | 2011-11-26 00:48:17 -0500 |
---|---|---|
committer | August Sodora <augsod@gmail.com> | 2011-11-26 00:49:26 -0500 |
commit | 93253ee6ab355a0590e9632e2ce2f024af15c535 (patch) | |
tree | b2fe179dca06062786ce4d243f9e7bceab3f0c00 /connectivity/source | |
parent | 8039cd4d7db58921f7d35eeea93cd7f85a5e0815 (diff) |
Remove some uses of OUString::setCharAt
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/commontools/TIndexes.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/commontools/dbtools2.cxx | 4 | ||||
-rw-r--r-- | connectivity/source/drivers/calc/CTable.cxx | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/connectivity/source/commontools/TIndexes.cxx b/connectivity/source/commontools/TIndexes.cxx index 5132a9fae89e..f319d457f5bd 100644 --- a/connectivity/source/commontools/TIndexes.cxx +++ b/connectivity/source/commontools/TIndexes.cxx @@ -190,7 +190,7 @@ sdbcx::ObjectType OIndexesHelper::appendObject( const ::rtl::OUString& _rForName } aSql.appendAscii(","); } - aSql.setCharAt(aSql.getLength()-1,')'); + aSql[aSql.getLength() - 1] = ')'; } else { diff --git a/connectivity/source/commontools/dbtools2.cxx b/connectivity/source/commontools/dbtools2.cxx index d955ef225c03..2ae5c91a7c49 100644 --- a/connectivity/source/commontools/dbtools2.cxx +++ b/connectivity/source/commontools/dbtools2.cxx @@ -355,8 +355,8 @@ namespace if ( aSql.getLength() ) { - if ( aSql.charAt(aSql.getLength()-1) == ',' ) - aSql.setCharAt(aSql.getLength()-1,')'); + if ( aSql[aSql.getLength() - 1] == ',' ) + aSql[aSql.getLength() - 1] = ')'; else aSql.appendAscii(")"); } diff --git a/connectivity/source/drivers/calc/CTable.cxx b/connectivity/source/drivers/calc/CTable.cxx index cbfb9f976ba1..ca33fa09ae0f 100644 --- a/connectivity/source/drivers/calc/CTable.cxx +++ b/connectivity/source/drivers/calc/CTable.cxx @@ -452,8 +452,8 @@ void lcl_SetValue( ORowSetValue& rValue, const Reference<XSpreadsheet>& xSheet, { ::rtl::OUStringBuffer aBuffer(2); aBuffer.setLength( 2 ); - aBuffer.setCharAt( 0, (sal_Unicode) ( 'A' + ( nColumn / 26 ) - 1 ) ); - aBuffer.setCharAt( 1, (sal_Unicode) ( 'A' + ( nColumn % 26 ) ) ); + aBuffer[0] = (sal_Unicode) ( 'A' + ( nColumn / 26 ) - 1 ); + aBuffer[1] = (sal_Unicode) ( 'A' + ( nColumn % 26 ) ); return aBuffer.makeStringAndClear(); } } |