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:
dougt%netscape.com
1999-09-03 22:21:29 +00:00
parent 1cb4db0707
commit baeab23036
22 changed files with 43 additions and 41 deletions

View File

@@ -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)