Fix for a minor little bug I introduced into GetChecked (that only happened with

trees).  Thanks to jdunn for spotting it.  r=matejka, a=chofmann
This commit is contained in:
hyatt%netscape.com 2000-01-19 22:18:57 +00:00
parent 7a8c9db45b
commit 4c802430de
2 changed files with 2 additions and 4 deletions

View File

@ -496,7 +496,7 @@ nsHTMLInputElement::SetAutocomplete(const nsString& aAutocomplete)
NS_IMETHODIMP
nsHTMLInputElement::GetChecked(PRBool* aValue)
{
nsString value("0");
nsAutoString value("0");
nsIFormControlFrame* formControlFrame = nsnull;
if (NS_SUCCEEDED(nsGenericHTMLElement::GetPrimaryFrame(this, formControlFrame))) {
if (nsnull != formControlFrame) {
@ -510,7 +510,6 @@ nsHTMLInputElement::GetChecked(PRBool* aValue)
// Obtain the value property from the presentation state.
if (presState) {
nsAutoString value;
presState->GetStateProperty("checked", value);
}
}

View File

@ -496,7 +496,7 @@ nsHTMLInputElement::SetAutocomplete(const nsString& aAutocomplete)
NS_IMETHODIMP
nsHTMLInputElement::GetChecked(PRBool* aValue)
{
nsString value("0");
nsAutoString value("0");
nsIFormControlFrame* formControlFrame = nsnull;
if (NS_SUCCEEDED(nsGenericHTMLElement::GetPrimaryFrame(this, formControlFrame))) {
if (nsnull != formControlFrame) {
@ -510,7 +510,6 @@ nsHTMLInputElement::GetChecked(PRBool* aValue)
// Obtain the value property from the presentation state.
if (presState) {
nsAutoString value;
presState->GetStateProperty("checked", value);
}
}