Bug 226439. Convert Seamonkey to EqualsLiteral. rs=darin

git-svn-id: svn://10.0.0.236/trunk@156785 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu
2004-05-22 22:15:22 +00:00
parent 3c30331a54
commit bdc7e5f59b
170 changed files with 708 additions and 708 deletions

View File

@@ -149,8 +149,8 @@ HTML2text(nsString& inString, nsString& inType, nsString& outType,
}
#else /* USE_SERIALIZER */
nsCOMPtr<nsIContentSink> sink;
if (inType != NS_LITERAL_STRING("text/html")
|| outType != NS_LITERAL_STRING("text/plain"))
if (!inType.EqualsLiteral("text/html")
|| !outType.EqualsLiteral("text/plain"))
{
char* in = ToNewCString(inType);
char* out = ToNewCString(outType);
@@ -171,7 +171,7 @@ HTML2text(nsString& inString, nsString& inType, nsString& outType,
parser->SetContentSink(sink);
nsCOMPtr<nsIDTD> dtd;
if (inType.Equals(NS_LITERAL_STRING("text/html"))) {
if (inType.EqualsLiteral("text/html")) {
static NS_DEFINE_CID(kNavDTDCID, NS_CNAVDTD_CID);
rv=nsComponentManager::CreateInstance(kNavDTDCID,nsnull,NS_GET_IID(nsIDTD),getter_AddRefs(dtd));
}