Fix a regression from my patch for bug 445999 in the self-assignment case.

This commit is contained in:
Jesse Ruderman 2008-09-10 16:23:00 -07:00
parent 2c0122f06d
commit 9b6ab3d11b

View File

@ -732,6 +732,11 @@ nsStringArray::~nsStringArray(void)
nsStringArray&
nsStringArray::operator=(const nsStringArray& other)
{
if (this == &other)
{
return *this;
}
// Free our strings
Clear();
@ -985,6 +990,11 @@ nsCStringArray::~nsCStringArray(void)
nsCStringArray&
nsCStringArray::operator=(const nsCStringArray& other)
{
if (this == &other)
{
return *this;
}
// Free our strings
Clear();