summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-03-08 04:51:28 +0100
committerThomas Arnhold <thomas@arnhold.org>2013-03-08 04:51:28 +0100
commit8035a3af260729ee47a1d805811e17d06d035e3d (patch)
treee3040a30673497421525ea639add7f7b31a55a65 /dbaccess
parentb5d7f9208294803cc7a2dfb4c2a4cb17d7739947 (diff)
some further OUString cleanup
Change-Id: I13eb94092e29ececc9fbf494074acde5f893b605
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/api/KeySet.cxx4
-rw-r--r--dbaccess/source/core/api/tablecontainer.cxx4
-rw-r--r--dbaccess/source/filter/xml/dbloader2.cxx6
3 files changed, 5 insertions, 9 deletions
diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx
index f252dc88ea7b..4df02302607a 100644
--- a/dbaccess/source/core/api/KeySet.cxx
+++ b/dbaccess/source/core/api/KeySet.cxx
@@ -867,9 +867,7 @@ void OKeySet::executeInsert( const ORowSetRow& _rInsertRow,const OUString& i_sSQ
if(!sMaxStmt.isEmpty())
{
sMaxStmt = sMaxStmt.replaceAt(sMaxStmt.getLength()-1,1,OUString(" "));
- OUString sStmt = OUString("SELECT ");
- sStmt += sMaxStmt;
- sStmt += OUString("FROM ");
+ OUString sStmt = "SELECT " + sMaxStmt + "FROM ";
OUString sCatalog,sSchema,sTable;
::dbtools::qualifiedNameComponents(m_xConnection->getMetaData(),m_sUpdateTableName,sCatalog,sSchema,sTable,::dbtools::eInDataManipulation);
sStmt += ::dbtools::composeTableNameForSelect( m_xConnection, sCatalog, sSchema, sTable );
diff --git a/dbaccess/source/core/api/tablecontainer.cxx b/dbaccess/source/core/api/tablecontainer.cxx
index 5c44d0ec2409..9fab58dc08bb 100644
--- a/dbaccess/source/core/api/tablecontainer.cxx
+++ b/dbaccess/source/core/api/tablecontainer.cxx
@@ -393,9 +393,9 @@ void OTableContainer::dropObject(sal_Int32 _nPos,const OUString _sElementName)
OUString aSql("DROP ");
if ( bIsView ) // here we have a view
- aSql += OUString("VIEW ");
+ aSql += "VIEW ";
else
- aSql += OUString("TABLE ");
+ aSql += "TABLE ";
aSql += sComposedName;
Reference<XConnection> xCon = m_xConnection;
OSL_ENSURE(xCon.is(),"Connection is null!");
diff --git a/dbaccess/source/filter/xml/dbloader2.cxx b/dbaccess/source/filter/xml/dbloader2.cxx
index be6a5a489e8b..12df6d797472 100644
--- a/dbaccess/source/filter/xml/dbloader2.cxx
+++ b/dbaccess/source/filter/xml/dbloader2.cxx
@@ -624,11 +624,9 @@ extern "C" void SAL_CALL writeDBLoaderInfo2(void* pRegistryKey)
OUString aImpl("/");
aImpl += ::dbaxml::DBContentLoader::getImplementationName_Static();
- OUString aImpltwo = aImpl;
- aImpltwo += OUString("/UNO/Loader");
+ OUString aImpltwo = aImpl + "/UNO/Loader";
Reference< XRegistryKey> xNewKey = xKey->createKey( aImpltwo );
- aImpltwo = aImpl;
- aImpltwo += OUString("/Loader");
+ aImpltwo = aImpl + "/Loader";
Reference< XRegistryKey > xLoaderKey = xKey->createKey( aImpltwo );
xNewKey = xLoaderKey->createKey( OUString("Pattern") );
xNewKey->setAsciiValue( OUString("private:factory/sdatabase") );