Bug 226439. Convert Seamonkey to EqualsLiteral. rs=darin

git-svn-id: svn://10.0.0.236/trunk@194900 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu 2006-04-20 03:39:11 +00:00
parent 5871ad52ca
commit a4e307704d

View File

@ -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<nsIInputStream> postDataStream;