diff --git a/mozilla/extensions/webservices/soap/src/nsHTTPSOAPTransport.cpp b/mozilla/extensions/webservices/soap/src/nsHTTPSOAPTransport.cpp index 6d09ccdaafe..9d9c2d9176c 100644 --- a/mozilla/extensions/webservices/soap/src/nsHTTPSOAPTransport.cpp +++ b/mozilla/extensions/webservices/soap/src/nsHTTPSOAPTransport.cpp @@ -128,7 +128,7 @@ NS_IMETHODIMP nsHTTPSOAPTransportCompletion::GetCall(nsISOAPCall * *aCall) /* readonly attribute nsISOAPResponse response; */ NS_IMETHODIMP nsHTTPSOAPTransportCompletion::GetResponse(nsISOAPResponse * *aResponse) { - *aResponse = mRequest ? nsnull : mResponse; + *aResponse = mRequest ? (nsCOMPtr)nsnull : mResponse; NS_IF_ADDREF(*aResponse); return NS_OK; } diff --git a/mozilla/extensions/xmlextras/soap/src/nsHTTPSOAPTransport.cpp b/mozilla/extensions/xmlextras/soap/src/nsHTTPSOAPTransport.cpp index 6d09ccdaafe..9d9c2d9176c 100644 --- a/mozilla/extensions/xmlextras/soap/src/nsHTTPSOAPTransport.cpp +++ b/mozilla/extensions/xmlextras/soap/src/nsHTTPSOAPTransport.cpp @@ -128,7 +128,7 @@ NS_IMETHODIMP nsHTTPSOAPTransportCompletion::GetCall(nsISOAPCall * *aCall) /* readonly attribute nsISOAPResponse response; */ NS_IMETHODIMP nsHTTPSOAPTransportCompletion::GetResponse(nsISOAPResponse * *aResponse) { - *aResponse = mRequest ? nsnull : mResponse; + *aResponse = mRequest ? (nsCOMPtr)nsnull : mResponse; NS_IF_ADDREF(*aResponse); return NS_OK; }