Bug 869836 - Part 2: Use AppendLiteral instead of Append(NS_LITERAL_STRING(...)). r=ehsan

This commit is contained in:
Birunthan Mohanathas
2014-05-22 06:48:50 +03:00
parent 1da5b2d71a
commit 1ebdb921a5
61 changed files with 265 additions and 252 deletions

View File

@@ -530,11 +530,10 @@ nsLocalFile::AppendRelativeNativePath(const nsACString& aFragment)
return NS_ERROR_FILE_UNRECOGNIZED_PATH;
}
if (mPath.EqualsLiteral("/")) {
mPath.Append(aFragment);
} else {
mPath.Append(NS_LITERAL_CSTRING("/") + aFragment);
if (!mPath.EqualsLiteral("/")) {
mPath.Append('/');
}
mPath.Append(aFragment);
return NS_OK;
}