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));