fix Bug 70989 Clean up lots of "shadows" and other common warnings
r=peterv, jst, ducarroz, edburns. sr=jst, shaver git-svn-id: svn://10.0.0.236/trunk@89986 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -564,7 +564,7 @@ nsHTMLInputElement::SetPresStateChecked(nsIHTMLContent * aHTMLContent,
|
||||
|
||||
// Obtain the value property from the presentation state.
|
||||
if (presState) {
|
||||
nsAutoString value; value.AssignWithConversion( aValue ? "1" : "0" );
|
||||
nsAutoString value; value.Assign(aValue ? NS_LITERAL_STRING("1") : NS_LITERAL_STRING("0"));
|
||||
presState->SetStateProperty(NS_LITERAL_STRING("checked"), value);
|
||||
}
|
||||
}
|
||||
@@ -587,7 +587,7 @@ nsHTMLInputElement::SetChecked(PRBool aValue)
|
||||
nsIFormControlFrame* formControlFrame = nsnull;
|
||||
if (NS_SUCCEEDED(GetPrimaryFrame(this, formControlFrame))) {
|
||||
// the value is being toggled
|
||||
nsAutoString val; val.AssignWithConversion(aValue ? "1" : "0");
|
||||
nsAutoString val; val.Assign(aValue ? NS_LITERAL_STRING("1") : NS_LITERAL_STRING("0"));
|
||||
|
||||
formControlFrame->SetProperty(presContext, nsHTMLAtoms::checked, val);
|
||||
}
|
||||
@@ -608,7 +608,6 @@ nsHTMLInputElement::SetChecked(PRBool aValue)
|
||||
SetPresStateChecked(this, stateType, aValue);
|
||||
|
||||
if (stateType == nsIStatefulFrame::eRadioType) {
|
||||
nsIDOMHTMLInputElement *radioElement = this;
|
||||
nsAutoString name;
|
||||
GetName(name);
|
||||
|
||||
|
||||
@@ -577,8 +577,6 @@ nsHTMLTableRowElement::InsertCell(PRInt32 aIndex, nsIDOMHTMLElement** aValue)
|
||||
{
|
||||
*aValue = nsnull;
|
||||
|
||||
PRInt32 refIndex = (0 <= aIndex) ? aIndex : 0;
|
||||
|
||||
nsCOMPtr<nsIDOMHTMLCollection> cells;
|
||||
|
||||
GetCells(getter_AddRefs(cells));
|
||||
|
||||
Reference in New Issue
Block a user