From a4e307704d2dae19ea6066bc043fd6f40dfc7d02 Mon Sep 17 00:00:00 2001 From: "roc+%cs.cmu.edu" Date: Thu, 20 Apr 2006 03:39:11 +0000 Subject: [PATCH] Bug 226439. Convert Seamonkey to EqualsLiteral. rs=darin git-svn-id: svn://10.0.0.236/trunk@194900 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/base/src/nsXMLHttpRequest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/content/base/src/nsXMLHttpRequest.cpp b/mozilla/content/base/src/nsXMLHttpRequest.cpp index 810c4b99d50..20fd508344d 100644 --- a/mozilla/content/base/src/nsXMLHttpRequest.cpp +++ b/mozilla/content/base/src/nsXMLHttpRequest.cpp @@ -157,7 +157,7 @@ nsMultipartProxyListener::OnStartRequest(nsIRequest *aRequest, nsCAutoString contentType; nsresult rv = channel->GetContentType(contentType); - if (!contentType.Equals(NS_LITERAL_CSTRING("multipart/x-mixed-replace"))) { + if (!contentType.EqualsLiteral("multipart/x-mixed-replace")) { return NS_ERROR_INVALID_ARG; } @@ -504,7 +504,7 @@ nsXMLHttpRequest::ConvertBodyToText(nsAString& aOutBuffer) } } - if (dataCharset.Equals(NS_LITERAL_CSTRING("ASCII"))) { + if (dataCharset.EqualsLiteral("ASCII")) { CopyASCIItoUTF16(mResponseBody, aOutBuffer); return NS_OK; @@ -1380,7 +1380,7 @@ nsXMLHttpRequest::Send(nsIVariant *aBody) httpChannel->GetRequestMethod(method); // If GET, method name will be uppercase } - if (aBody && httpChannel && !method.Equals(NS_LITERAL_CSTRING("GET"))) { + if (aBody && httpChannel && !method.EqualsLiteral("GET")) { nsXPIDLString serial; nsCOMPtr postDataStream;