r=dougt, a=dougt
Using this pointer rather than other pointer causes crash
This commit is contained in:
mkaply@us.ibm.com
2005-11-02 16:04:25 +00:00
parent a406846f42
commit f4c06ed3b6

View File

@@ -362,7 +362,7 @@ nsStringArray::operator=(const nsStringArray& other)
// Now copy the strings
for (PRInt32 i = Count() - 1; i >= 0; --i) {
nsString* oldString = NS_STATIC_CAST(nsString*, ElementAt(i));
nsString* oldString = NS_STATIC_CAST(nsString*, other.ElementAt(i));
mImpl->mArray[i] = new nsString(*oldString);
}
@@ -552,7 +552,7 @@ nsCStringArray::operator=(const nsCStringArray& other)
// Now copy the strings
for (PRInt32 i = Count() - 1; i >= 0; --i) {
nsCString* oldString = NS_STATIC_CAST(nsCString*, ElementAt(i));
nsCString* oldString = NS_STATIC_CAST(nsCString*, other.ElementAt(i));
mImpl->mArray[i] = new nsCString(*oldString);
}