diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2011-12-22 15:35:41 -0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2011-12-23 09:36:43 +0100 |
commit | 0fd40fe17bf67f81db44ef187ce67193ba1696cb (patch) | |
tree | e3d8ebfa3abcfc533f2e2419aa60385114dd67d1 /extensions/source/config | |
parent | 9ea15fea21487b82636bae516a220bf15f805a84 (diff) |
Fix for fdo43460 Part XVI getLength() to isEmpty()
Part XVI
Module
extensions
Diffstat (limited to 'extensions/source/config')
-rw-r--r-- | extensions/source/config/ldap/ldapaccess.cxx | 4 | ||||
-rw-r--r-- | extensions/source/config/ldap/ldapuserprofilebe.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/extensions/source/config/ldap/ldapaccess.cxx b/extensions/source/config/ldap/ldapaccess.cxx index 30977dd23be4..681c33c40553 100644 --- a/extensions/source/config/ldap/ldapaccess.cxx +++ b/extensions/source/config/ldap/ldapaccess.cxx @@ -163,7 +163,7 @@ void LdapConnection::connectSimple() void LdapConnection::initConnection() throw (ldap::LdapConnectionException) { - if (mLdapDefinition.mServer.getLength() == 0) + if (mLdapDefinition.mServer.isEmpty()) { rtl::OUStringBuffer message ; @@ -230,7 +230,7 @@ void LdapConnection::initConnection() { if (!isValid()) { connectSimple(); } - if (aUser.getLength() == 0) + if (aUser.isEmpty()) { throw lang::IllegalArgumentException( rtl::OUString(RTL_CONSTASCII_USTRINGPARAM diff --git a/extensions/source/config/ldap/ldapuserprofilebe.cxx b/extensions/source/config/ldap/ldapuserprofilebe.cxx index 3f59431ab224..8c9d24702416 100644 --- a/extensions/source/config/ldap/ldapuserprofilebe.cxx +++ b/extensions/source/config/ldap/ldapuserprofilebe.cxx @@ -178,7 +178,7 @@ bool LdapUserProfileBe::getLdapStringParam( xAccess->getByName(aLdapSetting) >>= sParam; aServerParameter = rtl::OUStringToOString(sParam, RTL_TEXTENCODING_ASCII_US); - return aServerParameter.getLength() != 0; + return !aServerParameter.isEmpty(); } //------------------------------------------------------------------------------ void LdapUserProfileBe::setPropertyValue( |