mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 497003 - Replace some QueryInterface calls in nsHttpChannel with do_QueryObject r=jduell
This commit is contained in:
parent
d437dad211
commit
463ef1bad8
@ -5257,17 +5257,13 @@ nsHttpChannel::RetargetDeliveryTo(nsIEventTarget* aNewTarget)
|
||||
nsCOMPtr<nsIThreadRetargetableRequest> retargetableCachePump;
|
||||
nsCOMPtr<nsIThreadRetargetableRequest> retargetableTransactionPump;
|
||||
if (mCachePump) {
|
||||
// Direct call to QueryInterface to avoid multiple inheritance issues.
|
||||
rv = mCachePump->QueryInterface(NS_GET_IID(nsIThreadRetargetableRequest),
|
||||
getter_AddRefs(retargetableCachePump));
|
||||
retargetableCachePump = do_QueryObject(mCachePump);
|
||||
// nsInputStreamPump should implement this interface.
|
||||
MOZ_ASSERT(retargetableCachePump);
|
||||
rv = retargetableCachePump->RetargetDeliveryTo(aNewTarget);
|
||||
}
|
||||
if (NS_SUCCEEDED(rv) && mTransactionPump) {
|
||||
// Direct call to QueryInterface to avoid multiple inheritance issues.
|
||||
rv = mTransactionPump->QueryInterface(NS_GET_IID(nsIThreadRetargetableRequest),
|
||||
getter_AddRefs(retargetableTransactionPump));
|
||||
retargetableTransactionPump = do_QueryObject(mTransactionPump);
|
||||
// nsInputStreamPump should implement this interface.
|
||||
MOZ_ASSERT(retargetableTransactionPump);
|
||||
rv = retargetableTransactionPump->RetargetDeliveryTo(aNewTarget);
|
||||
|
Loading…
Reference in New Issue
Block a user