diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-03 10:53:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-03 14:15:37 +0200 |
commit | 31d4562ca9e21f7b04960ac083765733e9a55118 (patch) | |
tree | 977b0cdd4a768a2eed9fef6a0f79ecff0b3250e6 /connectivity | |
parent | bce779932b59990fbdf8278993f8bb9514781de2 (diff) |
use begin()/end() when working with Sequence
Change-Id: Icf9da6a24d72c073338f6fbb513d7250b3898015
Reviewed-on: https://gerrit.libreoffice.org/39469
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/jdbc/JStatement.cxx | 4 | ||||
-rw-r--r-- | connectivity/source/drivers/odbc/OStatement.cxx | 4 | ||||
-rw-r--r-- | connectivity/source/sdbcx/VDescriptor.cxx | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/connectivity/source/drivers/jdbc/JStatement.cxx b/connectivity/source/drivers/jdbc/JStatement.cxx index 2ae4364d9c2d..c89e3c4e6f51 100644 --- a/connectivity/source/drivers/jdbc/JStatement.cxx +++ b/connectivity/source/drivers/jdbc/JStatement.cxx @@ -133,8 +133,8 @@ Sequence< Type > SAL_CALL java_sql_Statement_Base::getTypes( ) Sequence< Type > aOldTypes = java_sql_Statement_BASE::getTypes(); if ( m_pConnection.is() && !m_pConnection->isAutoRetrievingEnabled() ) { - (void) std::remove(aOldTypes.getArray(),aOldTypes.getArray() + aOldTypes.getLength(), - cppu::UnoType<XGeneratedResultSet>::get()); + std::remove(aOldTypes.begin(), aOldTypes.end(), + cppu::UnoType<XGeneratedResultSet>::get()); aOldTypes.realloc(aOldTypes.getLength() - 1); } diff --git a/connectivity/source/drivers/odbc/OStatement.cxx b/connectivity/source/drivers/odbc/OStatement.cxx index 834984027a74..62ea7650590c 100644 --- a/connectivity/source/drivers/odbc/OStatement.cxx +++ b/connectivity/source/drivers/odbc/OStatement.cxx @@ -139,8 +139,8 @@ Sequence< Type > SAL_CALL OStatement_Base::getTypes( ) Sequence< Type > aOldTypes = OStatement_BASE::getTypes(); if ( m_pConnection.is() && !m_pConnection->isAutoRetrievingEnabled() ) { - std::remove(aOldTypes.getArray(),aOldTypes.getArray() + aOldTypes.getLength(), - cppu::UnoType<XGeneratedResultSet>::get()); + std::remove(aOldTypes.begin(), aOldTypes.end(), + cppu::UnoType<XGeneratedResultSet>::get()); aOldTypes.realloc(aOldTypes.getLength() - 1); } diff --git a/connectivity/source/sdbcx/VDescriptor.cxx b/connectivity/source/sdbcx/VDescriptor.cxx index 5c9c899f7991..70463eadada5 100644 --- a/connectivity/source/sdbcx/VDescriptor.cxx +++ b/connectivity/source/sdbcx/VDescriptor.cxx @@ -86,9 +86,9 @@ namespace connectivity describeProperties( aProperties ); if ( isNew() ) - std::for_each( aProperties.getArray(), aProperties.getArray() + aProperties.getLength(), ResetROAttribute() ); + std::for_each( aProperties.begin(), aProperties.end(), ResetROAttribute() ); else - std::for_each( aProperties.getArray(), aProperties.getArray() + aProperties.getLength(), SetROAttribute() ); + std::for_each( aProperties.begin(), aProperties.end(), SetROAttribute() ); return new ::cppu::OPropertyArrayHelper( aProperties ); } |