From 89cc838eb07f531ea4e3fbf0bb4d25d875909330 Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Wed, 2 Nov 2005 07:42:19 +0000 Subject: [PATCH] bug 248810 nsIStreamConverter[Service] uses wide strings for mime types r+sr=darin --- content/xslt/src/xslt/txMozillaStylesheetCompiler.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/content/xslt/src/xslt/txMozillaStylesheetCompiler.cpp b/content/xslt/src/xslt/txMozillaStylesheetCompiler.cpp index ce4a07744b0b..3d60da9756cc 100644 --- a/content/xslt/src/xslt/txMozillaStylesheetCompiler.cpp +++ b/content/xslt/src/xslt/txMozillaStylesheetCompiler.cpp @@ -312,10 +312,9 @@ txStylesheetSink::OnStartRequest(nsIRequest *aRequest, nsISupports *aContext) nsCOMPtr serv = do_GetService("@mozilla.org/streamConverters;1", &rv); if (NS_SUCCEEDED(rv)) { - NS_ConvertASCIItoUCS2 from(UNKNOWN_CONTENT_TYPE); nsCOMPtr converter; - rv = serv->AsyncConvertData(from.get(), - NS_LITERAL_STRING("*/*").get(), + rv = serv->AsyncConvertData(UNKNOWN_CONTENT_TYPE, + "*/*", mListener, aContext, getter_AddRefs(converter));