diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-07-18 16:53:42 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2012-07-18 16:53:42 +0200 |
commit | e42319c10adf709307c3eafb5bd73884633ecd91 (patch) | |
tree | 0213021a018050ebd310153e1cb253a5b21962ca /extensions | |
parent | e1832ac55e11309815c1fd313fcef9868152fcd3 (diff) |
Pointless nitpicking to increase my commit count
Change-Id: Id887eeec911e32b8c43e9e561ffc74763f6da05d
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/config/ldap/ldapaccess.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/source/config/ldap/ldapaccess.cxx b/extensions/source/config/ldap/ldapaccess.cxx index cae58f4926ee..6be6ba13c2e2 100644 --- a/extensions/source/config/ldap/ldapaccess.cxx +++ b/extensions/source/config/ldap/ldapaccess.cxx @@ -223,9 +223,9 @@ void LdapConnection::initConnection() BerElement * ptr; #ifdef WNT PWCHAR attr = ldap_first_attributeW(mConnection, result.msg, &ptr); - while (attr != 0) { + while (attr) { PWCHAR * values = ldap_get_valuesW(mConnection, result.msg, attr); - if (values != 0) { + if (values) { data->insert( LdapData::value_type( attr, *values )); ldap_value_freeW(values); @@ -233,9 +233,9 @@ void LdapConnection::initConnection() attr = ldap_next_attributeW(mConnection, result.msg, ptr); #else char * attr = ldap_first_attribute(mConnection, result.msg, &ptr); - while (attr != 0) { + while (attr) { char ** values = ldap_get_values(mConnection, result.msg, attr); - if (values != 0) { + if (values) { data->insert( LdapData::value_type( rtl::OStringToOUString(attr, RTL_TEXTENCODING_ASCII_US), |