Changes nsIAtom iterface to return a shared (non-allocated) wstring when
GetUnicode() is called. (thanks waterson, jband) Also fixing 12237. (thanks jband). git-svn-id: svn://10.0.0.236/trunk@45945 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1765,7 +1765,7 @@ PRBool nsString::Equals(/*FIX: const */nsIAtom* aAtom,PRBool aIgnoreCase) const{
|
||||
PRBool result=PR_FALSE;
|
||||
if(aAtom){
|
||||
PRInt32 cmp=0;
|
||||
PRUnichar* unicode;
|
||||
const PRUnichar* unicode;
|
||||
if (aAtom->GetUnicode(&unicode) != NS_OK || unicode == nsnull)
|
||||
return PR_FALSE;
|
||||
if (aIgnoreCase)
|
||||
|
||||
Reference in New Issue
Block a user