making string conversions explicit

git-svn-id: svn://10.0.0.236/trunk@65029 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scc%netscape.com
2000-04-03 11:20:35 +00:00
parent 4e8cb518bc
commit e16ab47ebe
50 changed files with 275 additions and 275 deletions

View File

@@ -261,7 +261,7 @@ nsCommentNode::GetTag(nsIAtom*& aResult) const
NS_IMETHODIMP
nsCommentNode::GetNodeName(nsString& aNodeName)
{
aNodeName.Assign("#comment");
aNodeName.AssignWithConversion("#comment");
return NS_OK;
}
@@ -520,7 +520,7 @@ nsCommentNode::SetText(const char* aBuffer,
PRInt32 aLength,
PRBool aNotify)
{
nsAutoString str(aBuffer);
nsAutoString str; str.AssignWithConversion(aBuffer);
StripCommentDelimiters(str);
return mInner.SetText(this, str.GetUnicode(), str.Length(), aNotify);