making string conversions explicit

git-svn-id: svn://10.0.0.236/trunk@66103 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scc%netscape.com
2000-04-15 21:18:29 +00:00
parent 4f247b2dba
commit b5432ec86e
57 changed files with 1153 additions and 1170 deletions

View File

@@ -340,7 +340,7 @@ nsHTMLTextAreaElement::Select()
{
nsCOMPtr<nsIPresContext> presContext;
nsGenericHTMLElement::GetPresContext(this, getter_AddRefs(presContext));
formControlFrame->SetProperty(presContext, nsHTMLAtoms::select, "");
formControlFrame->SetProperty(presContext, nsHTMLAtoms::select, nsAutoString());
return NS_OK;
}
}
@@ -359,7 +359,7 @@ NS_IMPL_INT_ATTR(nsHTMLTextAreaElement, TabIndex, tabindex)
NS_IMETHODIMP
nsHTMLTextAreaElement::GetType(nsString& aType)
{
aType.Assign("textarea");
aType.AssignWithConversion("textarea");
return NS_OK;
}