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

@@ -273,7 +273,7 @@ nsLocalFile::Clone(nsIFile **file)
NS_IMETHODIMP
nsLocalFile::InitWithNativePath(const nsACString &filePath)
{
if (Substring(filePath, 0, 2) == NS_LITERAL_CSTRING("~/")) {
if (Substring(filePath, 0, 2).EqualsLiteral("~/")) {
nsCOMPtr<nsIFile> homeDir;
nsCAutoString homePath;
if (NS_FAILED(NS_GetSpecialDirectory(NS_OS_HOME_DIR,
@@ -487,7 +487,7 @@ nsLocalFile::AppendRelativeNativePath(const nsACString &fragment)
if (fragment.First() == '/')
return NS_ERROR_FILE_UNRECOGNIZED_PATH;
if (mPath.Equals(NS_LITERAL_CSTRING("/")))
if (mPath.EqualsLiteral("/"))
mPath.Append(fragment);
else
mPath.Append(NS_LITERAL_CSTRING("/") + fragment);