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
Родитель 7947f7cad6
Коммит da675522b2
1 изменённых файлов: 1 добавлений и 1 удалений

2
netwerk/cache/mgr/nsCachedNetData.cpp поставляемый
Просмотреть файл

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