Bug 88413: Remove |GetUnicode()| from nsString (and replace it with |get()|). r=dbaron, rs=scc.
This removes all call-sites I can currently fix. Tomorrow I'll try to get someone to checkin my changes to security/ and I'll get some help with the Netscape side of things. nsString::GetUnicode()'s final death-blow will be dealt soon. Please keep this in mind as you add new code :-) git-svn-id: svn://10.0.0.236/trunk@98363 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -494,13 +494,13 @@ nsresult nsImageDocument::UpdateTitle( void )
|
||||
key.AssignWithConversion("ImageTitleWithDimensions");
|
||||
nsAutoString widthStr; widthStr.AppendInt(width);
|
||||
nsAutoString heightStr; heightStr.AppendInt(height);
|
||||
const PRUnichar *formatStrings[2] = {widthStr.GetUnicode(), heightStr.GetUnicode()};
|
||||
rv = bundle->FormatStringFromName(key.GetUnicode(), formatStrings, 2, getter_Copies(valUni));
|
||||
const PRUnichar *formatStrings[2] = {widthStr.get(), heightStr.get()};
|
||||
rv = bundle->FormatStringFromName(key.get(), formatStrings, 2, getter_Copies(valUni));
|
||||
}
|
||||
}
|
||||
if (!valUni || !valUni[0]) {
|
||||
key.AssignWithConversion("ImageTitleWithoutDimensions");
|
||||
rv = bundle->GetStringFromName(key.GetUnicode(), getter_Copies(valUni));
|
||||
rv = bundle->GetStringFromName(key.get(), getter_Copies(valUni));
|
||||
}
|
||||
if (NS_SUCCEEDED(rv) && valUni) {
|
||||
// set it on the document
|
||||
|
||||
Reference in New Issue
Block a user