WaE: invalid conversion from 'PWCHAR' to 'const sal_Unicode*'
Change-Id: I55038545ad740891777075c6fadde9959bd7fa1b
This commit is contained in:
parent
286799f438
commit
0d56e73df7
1 changed files with 4 additions and 2 deletions
|
@ -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) ;
|
||||
|
|
Loading…
Reference in a new issue