mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
bug 47846: Crash opening mail message. r=attinasi+brendan, a=phil
This commit is contained in:
parent
195136278b
commit
c9409e6184
@ -112,9 +112,17 @@ public:
|
||||
virtual PRBool Equals(const nsHashKey* aKey) const
|
||||
{
|
||||
URLKey* key = (URLKey*)aKey;
|
||||
#if 0 // bug 47846
|
||||
PRBool equals = PR_FALSE;
|
||||
nsresult result = mURL->Equals(key->mURL, &equals);
|
||||
return (NS_SUCCEEDED(result) && equals);
|
||||
#else
|
||||
nsXPIDLCString str1;
|
||||
nsXPIDLCString str2;
|
||||
mURL->GetSpec(getter_Copies(str1));
|
||||
key->mURL->GetSpec(getter_Copies(str2));
|
||||
return ((nsCRT::strcasecmp(str1, str2) == 0) ? PR_TRUE : PR_FALSE);
|
||||
#endif
|
||||
}
|
||||
|
||||
virtual nsHashKey *Clone(void) const
|
||||
|
@ -112,9 +112,17 @@ public:
|
||||
virtual PRBool Equals(const nsHashKey* aKey) const
|
||||
{
|
||||
URLKey* key = (URLKey*)aKey;
|
||||
#if 0 // bug 47846
|
||||
PRBool equals = PR_FALSE;
|
||||
nsresult result = mURL->Equals(key->mURL, &equals);
|
||||
return (NS_SUCCEEDED(result) && equals);
|
||||
#else
|
||||
nsXPIDLCString str1;
|
||||
nsXPIDLCString str2;
|
||||
mURL->GetSpec(getter_Copies(str1));
|
||||
key->mURL->GetSpec(getter_Copies(str2));
|
||||
return ((nsCRT::strcasecmp(str1, str2) == 0) ? PR_TRUE : PR_FALSE);
|
||||
#endif
|
||||
}
|
||||
|
||||
virtual nsHashKey *Clone(void) const
|
||||
|
@ -112,9 +112,17 @@ public:
|
||||
virtual PRBool Equals(const nsHashKey* aKey) const
|
||||
{
|
||||
URLKey* key = (URLKey*)aKey;
|
||||
#if 0 // bug 47846
|
||||
PRBool equals = PR_FALSE;
|
||||
nsresult result = mURL->Equals(key->mURL, &equals);
|
||||
return (NS_SUCCEEDED(result) && equals);
|
||||
#else
|
||||
nsXPIDLCString str1;
|
||||
nsXPIDLCString str2;
|
||||
mURL->GetSpec(getter_Copies(str1));
|
||||
key->mURL->GetSpec(getter_Copies(str2));
|
||||
return ((nsCRT::strcasecmp(str1, str2) == 0) ? PR_TRUE : PR_FALSE);
|
||||
#endif
|
||||
}
|
||||
|
||||
virtual nsHashKey *Clone(void) const
|
||||
|
Loading…
Reference in New Issue
Block a user