Bug 100476: Convert uses of member functions ToNewUnicode, ToNewCString and ToNewUTF8String to their global versions and remove support from nsCString and nsString. r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@104212 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -178,7 +178,7 @@ char* PK11PasswordPrompt(PK11SlotInfo* slot, PRBool retry, void* arg) {
|
||||
rv = proxyPrompt->PromptPassword(nsnull, promptString.get(),
|
||||
&password, nsnull, nsnull, &value);
|
||||
if (NS_SUCCEEDED(rv) && value) {
|
||||
char* str = nsString(password).ToNewCString();
|
||||
char* str = ToNewCString(nsDependentString(password));
|
||||
Recycle(password);
|
||||
return str;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user