making string conversions explicit

This commit is contained in:
scc%netscape.com 2000-04-27 20:22:27 +00:00
Родитель 24b5c26c82
Коммит f3a016e3f2
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -263,16 +263,16 @@ ImageConsumer::DoContent(const char * aContentType,
if (aAbortProcess)
*aAbortProcess = PR_FALSE;
nsAutoString contentType(aContentType);
nsAutoString contentType; contentType.AssignWithConversion(aContentType);
if (contentType == "multipart/x-mixed-replace"
|| contentType == "multipart/mixed") {
if (contentType.EqualsWithConversion("multipart/x-mixed-replace")
|| contentType.EqualsWithConversion("multipart/mixed")) {
// if we're getting multipart data, we have to convert it.
// so wedge the converter inbetween us and the consumer.
nsCOMPtr<nsIStreamConverterService> convServ = do_GetService(kStreamConvServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
nsAutoString astrix("*/*");
nsAutoString astrix; astrix.AssignWithConversion("*/*");
return convServ->AsyncConvertData(contentType.GetUnicode(),
astrix.GetUnicode(),
NS_STATIC_CAST(nsIStreamListener*, this),