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 /dbaccess | |
parent | 8039cd4d7db58921f7d35eeea93cd7f85a5e0815 (diff) |
Remove some uses of OUString::setCharAt
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/api/CacheSet.cxx | 6 | ||||
-rw-r--r-- | dbaccess/source/core/api/KeySet.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/ext/macromigration/migrationengine.cxx | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/dbaccess/source/core/api/CacheSet.cxx b/dbaccess/source/core/api/CacheSet.cxx index f1e5f3e0dfdb..bd319143f84a 100644 --- a/dbaccess/source/core/api/CacheSet.cxx +++ b/dbaccess/source/core/api/CacheSet.cxx @@ -188,8 +188,8 @@ void SAL_CALL OCacheSet::insertRow( const ORowSetRow& _rInsertRow,const connecti aValues.append(aPara); } - aSql.setCharAt(aSql.getLength()-1,')'); - aValues.setCharAt(aValues.getLength()-1,')'); + aSql[aSql.getLength() - 1] = ')'; + aValues[aValues.getLength() - 1] = ')'; aSql.append(aValues.makeStringAndClear()); // now create end execute the prepared statement @@ -311,7 +311,7 @@ void SAL_CALL OCacheSet::updateRow(const ORowSetRow& _rInsertRow ,const ORowSetR ::rtl::OUStringBuffer aCondition; ::std::list< sal_Int32> aOrgValues; fillParameters(_rInsertRow,_xTable,aCondition,aSql,aOrgValues); - aSql.setCharAt(aSql.getLength()-1,' '); + aSql[aSql.getLength() - 1] = ' '; if ( aCondition.getLength() ) { aCondition.setLength(aCondition.getLength()-5); diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx index 28c6828bb1a8..d399375fc684 100644 --- a/dbaccess/source/core/api/KeySet.cxx +++ b/dbaccess/source/core/api/KeySet.cxx @@ -697,8 +697,8 @@ void SAL_CALL OKeySet::insertRow( const ORowSetRow& _rInsertRow,const connectivi if ( !bModified ) ::dbtools::throwSQLException( DBACORE_RESSTRING( RID_STR_NO_VALUE_CHANGED ), SQL_GENERAL_ERROR, m_xConnection ); - aSql.setCharAt(aSql.getLength()-1,')'); - aValues.setCharAt(aValues.getLength()-1,')'); + aSql[aSql.getLength() - 1] = ')'; + aValues[aValues.getLength() - 1] = ')'; aSql.append(aValues.makeStringAndClear()); // now create,fill and execute the prepared statement ::rtl::OUString sEmpty; diff --git a/dbaccess/source/ext/macromigration/migrationengine.cxx b/dbaccess/source/ext/macromigration/migrationengine.cxx index ef319d65f764..8369f3eee96e 100644 --- a/dbaccess/source/ext/macromigration/migrationengine.cxx +++ b/dbaccess/source/ext/macromigration/migrationengine.cxx @@ -1259,7 +1259,7 @@ namespace dbmm for ( sal_Int32 i=0; i<nBaseNameLen; ++i ) { if ( !::comphelper::OStorageHelper::IsValidZipEntryFileName( pReplacement + i, 1, sal_False ) ) - aReplacement.setCharAt( i, '_' ); + aReplacement[i] = '_'; } sBaseName = aReplacement.makeStringAndClear(); |