diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-10 16:23:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-11 07:18:11 +0200 |
commit | cdbac696fb0cbb1d09645bc02799eed5504b192b (patch) | |
tree | 25ef63dbfb17fdafcd073cbc0c1d88bd5759e408 /connectivity/source | |
parent | cfd06eb99b8f366bfe96e4a6d3112e4c6057098b (diff) |
simplify "a = a +" to "a +="
mostly so that my stringadd loplugin can point out places to improve
Change-Id: I9920ee1c99cdb6b811ba67ff9d8e32aa261884b5
Reviewed-on: https://gerrit.libreoffice.org/80618
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/drivers/ado/ADatabaseMetaData.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/firebird/DatabaseMetaData.cxx | 4 | ||||
-rw-r--r-- | connectivity/source/drivers/odbc/OConnection.cxx | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/connectivity/source/drivers/ado/ADatabaseMetaData.cxx b/connectivity/source/drivers/ado/ADatabaseMetaData.cxx index 29871b110f13..8e46761e8c27 100644 --- a/connectivity/source/drivers/ado/ADatabaseMetaData.cxx +++ b/connectivity/source/drivers/ado/ADatabaseMetaData.cxx @@ -916,7 +916,7 @@ OUString SAL_CALL ODatabaseMetaData::getSQLKeywords( ) WpOLEAppendCollection<ADOFields, ADOField, WpADOField> aFields(aRecordset.GetFields()); WpADOField aField(aFields.GetItem(0)); aField.get_Value(aValue); - aRet = aRet + aValue.getString() + ","; + aRet += aValue.getString() + ","; aRecordset.MoveNext(); } aRecordset.Close(); diff --git a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx index 74015586c093..b0344b5f8b8f 100644 --- a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx +++ b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx @@ -1502,9 +1502,9 @@ uno::Reference< XResultSet > ODatabaseMetaData::lcl_getKeys(const bool& bIsImpor "ON FOREI.RDB$INDEX_NAME = FOREIGN_INDEX.RDB$INDEX_NAME " "WHERE FOREI.RDB$CONSTRAINT_TYPE = 'FOREIGN KEY' "; if (bIsImport) - sSQL = sSQL + "AND FOREI.RDB$RELATION_NAME = '"+ table +"'"; + sSQL += "AND FOREI.RDB$RELATION_NAME = '"+ table +"'"; else - sSQL = sSQL + "AND PRIM.RDB$RELATION_NAME = '"+ table +"'"; + sSQL += "AND PRIM.RDB$RELATION_NAME = '"+ table +"'"; uno::Reference< XResultSet > rs = statement->executeQuery(sSQL); uno::Reference< XRow > xRow( rs, UNO_QUERY_THROW ); diff --git a/connectivity/source/drivers/odbc/OConnection.cxx b/connectivity/source/drivers/odbc/OConnection.cxx index e879684b68fa..589697f7ff72 100644 --- a/connectivity/source/drivers/odbc/OConnection.cxx +++ b/connectivity/source/drivers/odbc/OConnection.cxx @@ -224,13 +224,13 @@ SQLRETURN OConnection::Construct(const OUString& url,const Sequence< PropertyVal { if( ! (pBegin->Value >>= aUID) ) SAL_WARN("connectivity.odbc", "Construct: unable to get property user"); - aDSN = aDSN + ";UID=" + aUID; + aDSN += ";UID=" + aUID; } else if( pBegin->Name == "password") { if( ! (pBegin->Value >>= aPWD) ) SAL_WARN("connectivity.odbc", "Construct: unable to get property password"); - aDSN = aDSN + ";PWD=" + aPWD; + aDSN += ";PWD=" + aPWD; } else if( pBegin->Name == "UseCatalog") { |