add nsIStreamObserver to QI method. Since it is inherited from nsIStreamListener, you need to explicitly list both

otherwise it generates an assert when you use a nsCOMPtr to QI for a method on nsIStreamObserver
This commit is contained in:
mscott%netscape.com 2000-01-13 03:17:38 +00:00
parent cebe5a092d
commit c18efc0320

View File

@ -1149,7 +1149,7 @@ private:
nsCOMPtr<nsIChannel> mChannel; nsCOMPtr<nsIChannel> mChannel;
}; };
NS_IMPL_ISUPPORTS2(InterceptStreamListener, nsIInputStream, nsIStreamListener) NS_IMPL_ISUPPORTS3(InterceptStreamListener, nsIInputStream, nsIStreamListener, nsIStreamObserver)
NS_IMETHODIMP NS_IMETHODIMP
nsCachedNetData::InterceptAsyncRead(nsIStreamListener *aOriginalListener, nsCachedNetData::InterceptAsyncRead(nsIStreamListener *aOriginalListener,