Simplify containers iterations in connectivity

Desktop / LibreOffice - Arkadiy Illarionov [gmail.com] - 9 March 2019 17:31 EST

Use range-based loop or replace with STL functions

Change-Id: I1f7c1ea19cdc8d450b7ed88a663ba9ccb3249304 Reviewed-on: https://gerrit.libreoffice.org/68974

31f96c3e0d13 Simplify containers iterations in connectivity
connectivity/source/commontools/DriversConfig.cxx | 40 ++++----
connectivity/source/commontools/TTableHelper.cxx | 41 +++-----
connectivity/source/commontools/dbtools.cxx | 11 +--
connectivity/source/commontools/paramwrapper.cxx | 11 +--
connectivity/source/cpool/ZConnectionPool.cxx | 10 +-
connectivity/source/cpool/ZPoolCollection.cxx | 20 ++--
connectivity/source/drivers/ado/AConnection.cxx | 5 +-
connectivity/source/drivers/ado/ADriver.cxx | 18 ++--
connectivity/source/drivers/ado/AStatement.cxx | 8 +-
connectivity/source/drivers/calc/CTable.cxx | 7 +-
connectivity/source/drivers/component/CTable.cxx | 5 +-
connectivity/source/drivers/dbase/DTable.cxx | 11 +--
connectivity/source/drivers/evoab2/NDriver.cxx | 4 +-
connectivity/source/drivers/evoab2/NResultSet.cxx | 7 +-
.../source/drivers/evoab2/NResultSetMetaData.cxx | 5 +-
connectivity/source/drivers/file/FResultSet.cxx | 27 ++----
.../source/drivers/file/FStringFunctions.cxx | 20 ++--
connectivity/source/drivers/file/fcode.cxx | 8 +-
connectivity/source/drivers/hsqldb/HDriver.cxx | 46 ++++-----
.../source/drivers/jdbc/DatabaseMetaData.cxx | 10 +-
.../source/drivers/macab/MacabAddressBook.cxx | 10 +-
.../source/drivers/macab/MacabConnection.cxx | 4 +-
connectivity/source/drivers/macab/MacabDriver.cxx | 4 +-
.../drivers/macab/MacabResultSetMetaData.cxx | 5 +-
connectivity/source/drivers/mork/MColumnAlias.cxx | 42 ++++----
connectivity/source/drivers/mork/MConnection.cxx | 13 ++-
.../source/drivers/mork/MDatabaseMetaData.cxx | 13 +--
connectivity/source/drivers/mork/MResultSet.cxx | 62 +++++-------
connectivity/source/drivers/mork/MStatement.cxx | 2 +-
connectivity/source/drivers/mork/MorkParser.cxx | 106 +++++++++------------
.../drivers/mozab/bootstrap/MNSProfileDiscover.cxx | 50 +++++-----
connectivity/source/drivers/mysql_jdbc/YDriver.cxx | 48 +++++-----
.../drivers/mysqlc/mysqlc_databasemetadata.cxx | 11 +--
connectivity/source/drivers/odbc/OResultSet.cxx | 64 +++++--------
.../source/drivers/postgresql/pq_connection.cxx | 9 +-
.../source/drivers/postgresql/pq_statement.cxx | 2 +-
.../source/drivers/postgresql/pq_xcontainer.cxx | 33 +++----
connectivity/source/drivers/writer/WTable.cxx | 7 +-
connectivity/source/manager/mdrivermanager.cxx | 12 +--
connectivity/source/parse/sqlnode.cxx | 14 +--
connectivity/source/resource/sharedresources.cxx | 6 +-
connectivity/source/sdbcx/VCollection.cxx | 8 +-
connectivity/workben/iniParser/main.cxx | 15 +--
43 files changed, 346 insertions(+), 508 deletions(-)

Upstream: cgit.freedesktop.org


  • Share