From 52c13734943a3dabed1a5828ee9bb182aabe48c1 Mon Sep 17 00:00:00 2001 From: "dbaron%fas.harvard.edu" Date: Sat, 8 Dec 2001 22:51:15 +0000 Subject: [PATCH] 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 --- mozilla/xpcom/io/nsLocalFileUnix.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mozilla/xpcom/io/nsLocalFileUnix.cpp b/mozilla/xpcom/io/nsLocalFileUnix.cpp index 95bf5b0b0f0..628e2bd1fe0 100644 --- a/mozilla/xpcom/io/nsLocalFileUnix.cpp +++ b/mozilla/xpcom/io/nsLocalFileUnix.cpp @@ -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;