diff options
Diffstat (limited to 'connectivity/source/drivers/jdbc')
-rw-r--r-- | connectivity/source/drivers/jdbc/JConnection.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/jdbc/Reader.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/jdbc/tools.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/jdbc/JConnection.cxx b/connectivity/source/drivers/jdbc/JConnection.cxx index 9a3dd6bf2955..4c600cf2e767 100644 --- a/connectivity/source/drivers/jdbc/JConnection.cxx +++ b/connectivity/source/drivers/jdbc/JConnection.cxx @@ -578,7 +578,7 @@ namespace bool lcl_setSystemProperties_nothrow( const java::sql::ConnectionLog& _rLogger, JNIEnv& _rEnv, const Sequence< NamedValue >& _rSystemProperties ) { - if ( _rSystemProperties.getLength() == 0 ) + if ( !_rSystemProperties.hasElements() ) // nothing to do return true; diff --git a/connectivity/source/drivers/jdbc/Reader.cxx b/connectivity/source/drivers/jdbc/Reader.cxx index 6d3b846f88f8..1c7bfe9660df 100644 --- a/connectivity/source/drivers/jdbc/Reader.cxx +++ b/connectivity/source/drivers/jdbc/Reader.cxx @@ -111,7 +111,7 @@ sal_Int32 SAL_CALL java_io_Reader::readBytes( css::uno::Sequence< sal_Int8 >& aD if (m_buf) { - if(aData.getLength() == 0) + if(!aData.hasElements()) { aData.realloc(1); dst = aData.getArray(); diff --git a/connectivity/source/drivers/jdbc/tools.cxx b/connectivity/source/drivers/jdbc/tools.cxx index 29b68991b5f5..77265009d20b 100644 --- a/connectivity/source/drivers/jdbc/tools.cxx +++ b/connectivity/source/drivers/jdbc/tools.cxx @@ -183,7 +183,7 @@ jobject connectivity::convertTypeMapToJavaMap(const Reference< css::container::X if ( _rMap.is() ) { css::uno::Sequence< OUString > aNames = _rMap->getElementNames(); - if ( aNames.getLength() > 0 ) + if ( aNames.hasElements() ) ::dbtools::throwFeatureNotImplementedSQLException( "Type maps", nullptr ); } return nullptr; |