diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-07-01 10:33:48 -0500 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-07-02 07:31:30 +0000 |
commit | 6a08067902ddc0ec61a7c7b4b0035b303f643a50 (patch) | |
tree | cd49d1824cd169d9d224925b836eaa70de27414e /connectivity/source | |
parent | 82a1d75ee59c46e6bb361b98c520cc4eff2e770c (diff) |
OUString convertion for unotools
Change-Id: Ifae7f344e3827875e32afa3cda23c771f5735707
Reviewed-on: https://gerrit.libreoffice.org/4659
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/drivers/dbase/DTable.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx index cb767c9bf1fc..8caf763acdc7 100644 --- a/connectivity/source/drivers/dbase/DTable.cxx +++ b/connectivity/source/drivers/dbase/DTable.cxx @@ -2492,12 +2492,10 @@ String ODbaseTable::createTempFile() OUString aIdent = m_pConnection->getContent()->getIdentifier()->getContentIdentifier(); if ( aIdent.lastIndexOf('/') != (aIdent.getLength()-1) ) aIdent += "/"; - String sTempName(aIdent); - String sExt; - sExt.AssignAscii("."); - sExt += m_pConnection->getExtension(); - String sName(m_Name); + OUString sTempName(aIdent); + OUString sExt(OUString(".") + m_pConnection->getExtension()); + OUString sName(m_Name); TempFile aTempFile(sName,&sExt,&sTempName); if(!aTempFile.IsValid()) getConnection()->throwGenericSQLException(STR_COULD_NOT_ALTER_TABLE,*this); @@ -2507,7 +2505,7 @@ String ODbaseTable::createTempFile() aURL.SetURL(aTempFile.GetURL()); String sNewName(aURL.getName()); - sNewName.Erase(sNewName.Len() - sExt.Len()); + sNewName.Erase(sNewName.Len() - sExt.getLength()); return sNewName; } // ----------------------------------------------------------------------------- |