making string conversions explicit

git-svn-id: svn://10.0.0.236/trunk@66703 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scc%netscape.com 2000-04-21 10:28:04 +00:00
parent 00e4800c81
commit 7e2049c75c

View File

@ -1567,8 +1567,8 @@ NS_IMETHODIMP nsBrowserInstance::CreateMenuItem(
// Set the index attribute to item's index
nsString indexString;
indexString += aIndex;
rv = menuItemElement->SetAttribute(nsString("index"), indexString);
indexString.AppendInt(aIndex);
rv = menuItemElement->SetAttribute(NS_ConvertASCIItoUCS2("index"), indexString);
if (!NS_SUCCEEDED(rv)) {
printf("nsBrowserAppCore::CreateMenuItem ERROR setting ishist handler\n");
@ -1683,7 +1683,7 @@ nsBrowserInstance::ClearHistoryMenus(nsIDOMNode * aParent)
return NS_ERROR_FAILURE;
}
nsString attrname("index");
nsString attrname; attrname.AssignWithConversion("index");
nsString attrvalue;
rv = childElement->GetAttribute(attrname, attrvalue);