summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorRicardo Montania <ricardo@linuxafundo.com.br>2013-03-22 13:52:16 -0300
committerFridrich Strba <fridrich@documentfoundation.org>2013-03-22 17:17:18 +0000
commit9c281fda84bea4407bb8265d1e125fc6e429064d (patch)
tree83ac360ed343a617cea32c7956b361edd7e08e26 /connectivity
parent43f59b86cd2c65bf408bea8108b56839b21b8b4e (diff)
String::AppendAscii cleanup
Change-Id: I3c1ff291488b7747e143982aa7ea95169175c2c2 Reviewed-on: https://gerrit.libreoffice.org/2914 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/dbase/DIndex.cxx7
-rw-r--r--connectivity/source/drivers/dbase/DTable.cxx4
2 files changed, 5 insertions, 6 deletions
diff --git a/connectivity/source/drivers/dbase/DIndex.cxx b/connectivity/source/drivers/dbase/DIndex.cxx
index 0cb4630d1823..1e70a5cb84a9 100644
--- a/connectivity/source/drivers/dbase/DIndex.cxx
+++ b/connectivity/source/drivers/dbase/DIndex.cxx
@@ -509,16 +509,15 @@ sal_Bool ODbaseIndex::CreateImpl()
aName = getString(xCol->getFastPropertyValue(PROPERTY_ID_NAME));
const String aQuote(m_pTable->getConnection()->getMetaData()->getIdentifierQuoteString());
- String aStatement;
- aStatement.AssignAscii("SELECT ");
+ OUString aStatement( "SELECT " );
aStatement += aQuote;
aStatement += aName;
aStatement += aQuote;
- aStatement.AppendAscii(" FROM ");
+ aStatement += " FROM ";
aStatement += aQuote;
aStatement += m_pTable->getName().getStr();
aStatement += aQuote;
- aStatement.AppendAscii(" ORDER BY ");
+ aStatement += " ORDER BY ";
aStatement += aQuote;
aStatement += aName;
aStatement += aQuote;
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index ee2d7df1209a..386d802a1764 100644
--- a/connectivity/source/drivers/dbase/DTable.cxx
+++ b/connectivity/source/drivers/dbase/DTable.cxx
@@ -2318,8 +2318,8 @@ namespace
aURL.SetURL(aName);
aURL.setExtension( _sExtension );
- String sNewName(newName);
- sNewName.AppendAscii(".");
+ OUString sNewName(newName);
+ sNewName += ".";
sNewName += _sExtension;
try