making string conversions explicit; fixing bustage

git-svn-id: svn://10.0.0.236/trunk@65027 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scc%netscape.com
2000-04-03 09:10:08 +00:00
parent 50e8e3beb4
commit 74386ec8c1
2 changed files with 6 additions and 2 deletions

View File

@@ -515,7 +515,9 @@ nsHTMLContentSinkStream::OpenHTML(const nsIParserNode& aNode)
// See bug 20246: the html tag doesn't have "html" in its text,
// so AddStartTag will do the wrong thing
Write(kLessThan);
nsAutoCString tagname( nsString(nsHTMLTags::GetStringValue(tag)) );
nsString temp; temp.AssignWithConversion(nsHTMLTags::GetStringValue(tag));
nsAutoCString tagname(temp);
Write(tagname);
Write(kGreaterThan);
}