mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix a regression from my patch for bug 445999 in the self-assignment case.
This commit is contained in:
parent
2c0122f06d
commit
9b6ab3d11b
@ -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