mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Fix a regression from my patch for bug 445999 in the self-assignment case.
This commit is contained in:
parent
b3901a31af
commit
dcb70052c5
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user