Fix inefficient Assign pattern to use Append instead. b=113188 r=jag sr=jst

git-svn-id: svn://10.0.0.236/trunk@110100 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%fas.harvard.edu
2001-12-08 22:51:15 +00:00
parent 34df01adc8
commit 52c1373494

View File

@@ -453,8 +453,7 @@ nsLocalFile::AppendRelativePath(const char *fragment)
if (*fragment == '/')
return NS_ERROR_FILE_UNRECOGNIZED_PATH;
mPath.Assign(mPath + NS_LITERAL_CSTRING("/") +
nsDependentCString(fragment));
mPath.Append(NS_LITERAL_CSTRING("/") + nsDependentCString(fragment));
if (!mPath.get())
return NS_ERROR_OUT_OF_MEMORY;