From e8deaace7aa2bb60658e84380e6df2a1646cfc21 Mon Sep 17 00:00:00 2001 From: "fur%netscape.com" Date: Wed, 8 Dec 1999 04:04:26 +0000 Subject: [PATCH] + Fix unix build bustage: Add explicit casts to XPIDLCString rvalues. + Fixed warnings --- netwerk/protocol/http/src/nsHTTPChannel.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/netwerk/protocol/http/src/nsHTTPChannel.cpp b/netwerk/protocol/http/src/nsHTTPChannel.cpp index ac43aa7d6961..c4f55b598bdb 100644 --- a/netwerk/protocol/http/src/nsHTTPChannel.cpp +++ b/netwerk/protocol/http/src/nsHTTPChannel.cpp @@ -82,15 +82,15 @@ nsHTTPChannel::nsHTTPChannel(nsIURI* i_URL, PRUint32 bufferSegmentSize, PRUint32 bufferMaxSize): mResponse(nsnull), - mRawResponseListener(nsnull), mHandler(dont_QueryInterface(i_Handler)), + mRawResponseListener(nsnull), mLoadAttributes(LOAD_NORMAL), - mLoadGroup(nsnull), + mResponseContext(nsnull), mOriginalURI(dont_QueryInterface(originalURI ? originalURI : i_URL)), mURI(dont_QueryInterface(i_URL)), mConnected(PR_FALSE), mState(HS_IDLE), - mResponseContext(nsnull), + mLoadGroup(nsnull), mCachedResponse(nsnull), mCachedContentIsAvailable(PR_FALSE), mCachedContentIsValid(PR_FALSE), @@ -957,7 +957,7 @@ nsHTTPChannel::CacheReceivedResponse(nsIStreamListener *aListener, nsIStreamList if (header) { PRInt32 offset; - nsCAutoString cacheControlHeader = header; + nsCAutoString cacheControlHeader = (const char*)header; offset = cacheControlHeader.Find("no-store", PR_TRUE); if (offset != kNotFound) return NS_OK; @@ -970,7 +970,7 @@ nsHTTPChannel::CacheReceivedResponse(nsIStreamListener *aListener, nsIStreamList if (header) { PRInt32 offset; - nsCAutoString pragmaHeader = header; + nsCAutoString pragmaHeader = (const char*)header; offset = pragmaHeader.Find("no-cache", PR_TRUE); if (offset != kNotFound) return NS_OK;