From 74386ec8c19c810e3bd9fb9a5be679dffc21479a Mon Sep 17 00:00:00 2001 From: "scc%netscape.com" Date: Mon, 3 Apr 2000 09:10:08 +0000 Subject: [PATCH] making string conversions explicit; fixing bustage git-svn-id: svn://10.0.0.236/trunk@65027 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/htmlparser/src/nsHTMLContentSinkStream.cpp | 4 +++- mozilla/parser/htmlparser/src/nsHTMLContentSinkStream.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mozilla/htmlparser/src/nsHTMLContentSinkStream.cpp b/mozilla/htmlparser/src/nsHTMLContentSinkStream.cpp index 7dc348a434a..9d9e6990e84 100644 --- a/mozilla/htmlparser/src/nsHTMLContentSinkStream.cpp +++ b/mozilla/htmlparser/src/nsHTMLContentSinkStream.cpp @@ -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); } diff --git a/mozilla/parser/htmlparser/src/nsHTMLContentSinkStream.cpp b/mozilla/parser/htmlparser/src/nsHTMLContentSinkStream.cpp index 7dc348a434a..9d9e6990e84 100644 --- a/mozilla/parser/htmlparser/src/nsHTMLContentSinkStream.cpp +++ b/mozilla/parser/htmlparser/src/nsHTMLContentSinkStream.cpp @@ -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); }