diff options
author | David Tardon <dtardon@redhat.com> | 2012-07-20 09:37:27 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-07-20 09:37:27 +0200 |
commit | 0d56e73df7decc32f45d375ec8cc9940f8d249f4 (patch) | |
tree | caa1d31521f00847b216ddcd1258d7f2dc19ce88 /extensions/source/config/ldap | |
parent | 286799f43818b9dc5482720c0cd06eeede568758 (diff) |
WaE: invalid conversion from 'PWCHAR' to 'const sal_Unicode*'
Change-Id: I55038545ad740891777075c6fadde9959bd7fa1b
Diffstat (limited to 'extensions/source/config/ldap')
-rw-r--r-- | extensions/source/config/ldap/ldapaccess.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extensions/source/config/ldap/ldapaccess.cxx b/extensions/source/config/ldap/ldapaccess.cxx index 9675d5f94bda..9bedfe1e59cb 100644 --- a/extensions/source/config/ldap/ldapaccess.cxx +++ b/extensions/source/config/ldap/ldapaccess.cxx @@ -226,8 +226,10 @@ void LdapConnection::initConnection() while (attr) { PWCHAR * values = ldap_get_valuesW(mConnection, result.msg, attr); if (values) { + const rtl::OUString aAttr( reinterpret_cast<sal_Unicode*>( attr ) ); + const rtl::OUString aValues( reinterpret_cast<sal_Unicode*>( *values ) ); data->insert( - LdapData::value_type( attr, *values )); + LdapData::value_type( aAttr, aValues )); ldap_value_freeW(values); } attr = ldap_next_attributeW(mConnection, result.msg, ptr); @@ -291,7 +293,7 @@ void LdapConnection::initConnection() #ifdef WNT PWCHAR charsDn = ldap_get_dnW(mConnection, entry) ; - userDn = charsDn; + userDn = rtl::OUString( reinterpret_cast<const sal_Unicode*>( charsDn ) ); ldap_memfreeW(charsDn) ; #else sal_Char *charsDn = ldap_get_dn(mConnection, entry) ; |