mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 00:25:27 +00:00
Changed LDAP XPCOM SDK to use "wstring" instead of "string", bug 71247.
r=dmose@netscape.com sr=mscott@netscape.com
This commit is contained in:
parent
6aee460e6b
commit
4ea3d2fd6e
@ -465,7 +465,7 @@ nsLDAPAutoCompleteSession::OnLDAPSearchEntry(nsILDAPMessage *aMessage)
|
||||
// nsIAutoCompleteItem::value
|
||||
//
|
||||
PRUint32 numVals;
|
||||
char **values;
|
||||
PRUnichar **values;
|
||||
|
||||
rv = aMessage->GetValues(valueField, &numVals, &values);
|
||||
if (NS_FAILED(rv)) {
|
||||
@ -493,7 +493,7 @@ nsLDAPAutoCompleteSession::OnLDAPSearchEntry(nsILDAPMessage *aMessage)
|
||||
// just use the first value for the email attribute; subsequent values
|
||||
// are ignored
|
||||
//
|
||||
rv = item->SetValue(NS_ConvertUTF8toUCS2(values[0]).GetUnicode());
|
||||
rv = item->SetValue(values[0]);
|
||||
NS_FREE_XPCOM_ALLOCATED_POINTER_ARRAY(numVals, values);
|
||||
|
||||
if (NS_FAILED(rv)) {
|
||||
@ -716,8 +716,8 @@ nsLDAPAutoCompleteSession::StartLDAPSearch()
|
||||
// XXXdmose optimization: just request the attributes needed, not all
|
||||
// attributes. requires tweaking SearchExt.
|
||||
//
|
||||
rv = mOperation->SearchExt(dn, scope,
|
||||
searchFilter.get(),
|
||||
rv = mOperation->SearchExt(NS_ConvertUTF8toUCS2(dn).get(), scope,
|
||||
NS_ConvertUTF8toUCS2(searchFilter).get(),
|
||||
0, nsILDAPOperation::NO_LIMIT);
|
||||
if (NS_FAILED(rv)) {
|
||||
switch(rv) {
|
||||
|
Loading…
Reference in New Issue
Block a user