Replace uses of overloaded |fputs| and most uses of |ns[C]String::ToCString|. b=104763 r=jag rs=scc

This commit is contained in:
dbaron@fas.harvard.edu
2001-10-16 03:53:44 +00:00
parent 66b408cbe6
commit d52d3d978e
138 changed files with 456 additions and 811 deletions

View File

@@ -706,13 +706,13 @@ RDFContentSinkImpl::AddDocTypeDecl(const nsIParserNode& aNode, PRInt32 aMode)
NS_IMETHODIMP
RDFContentSinkImpl::AddCharacterData(const nsIParserNode& aNode)
{
nsAutoString text(aNode.GetText());
nsAutoString text;
if (aNode.GetTokenType() == eToken_entity) {
char buf[12];
text.ToCString(buf, sizeof(buf));
text.Truncate();
text.Append(rdf_EntityToUnicode(buf));
text = rdf_EntityToUnicode(
NS_LossyConvertUCS2toASCII(aNode.GetText()).get());
} else {
text = aNode.GetText();
}
PRInt32 addLen = text.Length();