bug 378637 part 2 - change some stack nscstrings to spdystream* autocstring r=hurley
authorPatrick McManus <mcmanus@ducksong.com>
Fri, 25 Apr 2014 16:01:23 -0400
changeset 183597 856b2a9e1428b4f4950fea1f300ba937957a9e1e
parent 183596 9917d4e933988588d997e42b2861f8a6b551316f
child 183598 25c7d263eb6ef63fcf2bded15ac3a6e3cb010711
push idunknown
push userunknown
push dateunknown
reviewershurley
bugs378637
milestone32.0a1
bug 378637 part 2 - change some stack nscstrings to spdystream* autocstring r=hurley
netwerk/protocol/http/Http2Stream.cpp
netwerk/protocol/http/SpdyStream3.cpp
netwerk/protocol/http/SpdyStream31.cpp
--- a/netwerk/protocol/http/Http2Stream.cpp
+++ b/netwerk/protocol/http/Http2Stream.cpp
@@ -285,18 +285,18 @@ Http2Stream::ParseHttpRequestHeaders(con
   // We have recvd all the headers, trim the local
   // buffer of the final empty line, and set countUsed to reflect
   // the whole header has been consumed.
   uint32_t oldLen = mFlatHttpRequestHeaders.Length();
   mFlatHttpRequestHeaders.SetLength(endHeader + 2);
   *countUsed = avail - (oldLen - endHeader) + 4;
   mAllHeadersSent = 1;
 
-  nsCString hostHeader;
-  nsCString hashkey;
+  nsAutoCString hostHeader;
+  nsAutoCString hashkey;
   mTransaction->RequestHead()->GetHeader(nsHttp::Host, hostHeader);
 
   CreatePushHashKey(NS_LITERAL_CSTRING("https"),
                     hostHeader, mSession->Serial(),
                     mTransaction->RequestHead()->RequestURI(),
                     mOrigin, hashkey);
 
   // check the push cache for GET
--- a/netwerk/protocol/http/SpdyStream3.cpp
+++ b/netwerk/protocol/http/SpdyStream3.cpp
@@ -275,18 +275,18 @@ SpdyStream3::ParseHttpRequestHeaders(con
   // We have recvd all the headers, trim the local
   // buffer of the final empty line, and set countUsed to reflect
   // the whole header has been consumed.
   uint32_t oldLen = mFlatHttpRequestHeaders.Length();
   mFlatHttpRequestHeaders.SetLength(endHeader + 2);
   *countUsed = avail - (oldLen - endHeader) + 4;
   mSynFrameComplete = 1;
 
-  nsCString hostHeader;
-  nsCString hashkey;
+  nsAutoCString hostHeader;
+  nsAutoCString hashkey;
   mTransaction->RequestHead()->GetHeader(nsHttp::Host, hostHeader);
 
   CreatePushHashKey(NS_LITERAL_CSTRING("https"),
                     hostHeader, mSession->Serial(),
                     mTransaction->RequestHead()->RequestURI(),
                     mOrigin, hashkey);
 
   // check the push cache for GET
--- a/netwerk/protocol/http/SpdyStream31.cpp
+++ b/netwerk/protocol/http/SpdyStream31.cpp
@@ -280,18 +280,18 @@ SpdyStream31::ParseHttpRequestHeaders(co
   // We have recvd all the headers, trim the local
   // buffer of the final empty line, and set countUsed to reflect
   // the whole header has been consumed.
   uint32_t oldLen = mFlatHttpRequestHeaders.Length();
   mFlatHttpRequestHeaders.SetLength(endHeader + 2);
   *countUsed = avail - (oldLen - endHeader) + 4;
   mSynFrameComplete = 1;
 
-  nsCString hostHeader;
-  nsCString hashkey;
+  nsAutoCString hostHeader;
+  nsAutoCString hashkey;
   mTransaction->RequestHead()->GetHeader(nsHttp::Host, hostHeader);
 
   CreatePushHashKey(NS_LITERAL_CSTRING("https"),
                     hostHeader, mSession->Serial(),
                     mTransaction->RequestHead()->RequestURI(),
                     mOrigin, hashkey);
 
   // check the push cache for GET