Bug 869836 - Part 6: Use EqualsLiteral instead of Equals where possible. r=ehsan

This commit is contained in:
Birunthan Mohanathas
2014-05-22 06:48:51 +03:00
parent cc3389eabe
commit 9c531b5b34
30 changed files with 99 additions and 99 deletions

View File

@@ -10931,12 +10931,12 @@ nsDocShell::ShouldAddToSessionHistory(nsIURI * aURI)
if (NS_FAILED(rv))
return false;
if (buf.Equals("about")) {
if (buf.EqualsLiteral("about")) {
rv = aURI->GetPath(buf);
if (NS_FAILED(rv))
return false;
if (buf.Equals("blank")) {
if (buf.EqualsLiteral("blank")) {
return false;
}
}
@@ -11678,7 +11678,7 @@ nsDocShell::ChannelIsPost(nsIChannel* aChannel)
nsAutoCString method;
httpChannel->GetRequestMethod(method);
return method.Equals("POST");
return method.EqualsLiteral("POST");
}
void