summaryrefslogtreecommitdiff
path: root/connectivity/source
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/commontools/TIndexes.cxx2
-rw-r--r--connectivity/source/commontools/dbtools2.cxx4
-rw-r--r--connectivity/source/drivers/calc/CTable.cxx4
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();
}
}