Bug 133657 nsISupportsVoid should have/use [noscript] attribute voidPtr data;

r=dougt sr=dveditz a=asa
This commit is contained in:
timeless%mac.com 2002-04-04 12:28:22 +00:00
parent a54c9c1278
commit dc372ad5dc
3 changed files with 3 additions and 8 deletions

View File

@ -103,7 +103,7 @@ nsHTTPChunkConv::AsyncConvertData (
mAsyncConvContext = (nsISupportsVoid *) aCtxt;
if (mAsyncConvContext)
{
const void *p;
void *p;
mAsyncConvContext -> GetData (&p);
mChunkContext = (nsHTTPChunkConvContext *)p;
}

View File

@ -219,12 +219,7 @@ interface nsISupportsDouble : nsISupportsPrimitive
[scriptable, uuid(464484f0-568d-11d3-baf8-00805f8a5dd7)]
interface nsISupportsVoid : nsISupportsPrimitive
{
/*
* This would be: "[noscript] attribute voidPtr data;" but for...
* http://bugzilla.mozilla.org/show_bug.cgi?id=11454
*/
[noscript] void GetData([shared,retval] out voidPtr aData);
[noscript] void SetData(in voidPtr aData);
[noscript] attribute voidPtr data;
string toString();
};

View File

@ -938,7 +938,7 @@ NS_IMETHODIMP nsSupportsVoidImpl::GetType(PRUint16 *aType)
return NS_OK;
}
NS_IMETHODIMP nsSupportsVoidImpl::GetData(const void * *aData)
NS_IMETHODIMP nsSupportsVoidImpl::GetData(void * *aData)
{
NS_ASSERTION(aData, "Bad pointer");
*aData = mData;