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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user