diff options
Diffstat (limited to 'dbaccess/source')
-rw-r--r-- | dbaccess/source/core/api/KeySet.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/core/api/tablecontainer.cxx | 4 | ||||
-rw-r--r-- | dbaccess/source/filter/xml/dbloader2.cxx | 6 |
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") ); |