I just took this code from nsHttpChannel.h:
...
...
...
private:
// Helper function to simplify getting notification callbacks.
template <class T>
void GetCallback(nsCOMPtr<T> &aResult)
{
NS_QueryNotificationCallbacks(mCallbacks, mLoadGroup,
NS_GET_IID(T),
getter_AddRefs(aResult));
}
...
...
...
So, it is better to call GetCallback than to use the mCallbacks member
variable directly?
Thanks,
Peter
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network