Fixing part of bug 209699. Eliminate bad usage of NS_ConvertU*. r=caillon@aillon.org, sr=alecf@flett.org

This commit is contained in:
jst@netscape.com
2003-06-24 01:46:50 +00:00
parent a448ce333a
commit b52c8fe710
12 changed files with 104 additions and 26 deletions

View File

@@ -476,7 +476,7 @@ PRBool nsObjectFrame::IsSupportedImage(nsIContent* aContent)
nsAutoString uType;
nsresult rv = aContent->GetAttr(kNameSpaceID_None, nsHTMLAtoms::type, uType);
nsCAutoString type = NS_ConvertUCS2toUTF8(uType);
NS_ConvertUCS2toUTF8 type(uType);
PRBool haveType = (rv == NS_CONTENT_ATTR_HAS_VALUE) && (!type.IsEmpty());
if (!haveType)
{