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

This commit is contained in:
dbaron@fas.harvard.edu
2001-12-08 22:51:15 +00:00
parent 3062c8e016
commit ef434be7f3

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;