Bug 869836 - Part 2: Use AppendLiteral instead of Append(NS_LITERAL_STRING(...)). r=ehsan
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user