[Libreoffice-commits] .: extensions/source
Fridrich Strba
fridrich at kemper.freedesktop.org
Wed Jul 18 07:54:34 PDT 2012
extensions/source/config/ldap/ldapaccess.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit e42319c10adf709307c3eafb5bd73884633ecd91
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date: Wed Jul 18 16:53:42 2012 +0200
Pointless nitpicking to increase my commit count
Change-Id: Id887eeec911e32b8c43e9e561ffc74763f6da05d
diff --git a/extensions/source/config/ldap/ldapaccess.cxx b/extensions/source/config/ldap/ldapaccess.cxx
index cae58f4..6be6ba1 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),
More information about the Libreoffice-commits
mailing list