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

@@ -70,10 +70,10 @@ AtomImpl::ToString(nsString& aBuf) /*FIX: const */
}
NS_IMETHODIMP
AtomImpl::GetUnicode( PRUnichar** _retval ) /*FIX: const */
AtomImpl::GetUnicode(const PRUnichar **aResult) /*FIX: const */
{
NS_ENSURE_ARG_POINTER(_retval);
*_retval = mString;
NS_ENSURE_ARG_POINTER(aResult);
*aResult = mString;
return NS_OK;
}