From f3a016e3f2403f3f4837d6a0aa53b30a04d727d5 Mon Sep 17 00:00:00 2001 From: "scc%netscape.com" Date: Thu, 27 Apr 2000 20:22:27 +0000 Subject: [PATCH] making string conversions explicit --- gfx/src/nsImageNetContextAsync.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gfx/src/nsImageNetContextAsync.cpp b/gfx/src/nsImageNetContextAsync.cpp index f9b20f3e5c6..186692f0ba4 100644 --- a/gfx/src/nsImageNetContextAsync.cpp +++ b/gfx/src/nsImageNetContextAsync.cpp @@ -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 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),