From 5e967895b39d80d2009d2a9dc24a9fb0218bf23e Mon Sep 17 00:00:00 2001 From: "jst%mozilla.jstenback.com" Date: Thu, 20 Apr 2006 03:38:44 +0000 Subject: [PATCH] Fixing bug 232503. Start using Empty[C]String() to save a bit on code-size. r+sr=peterv@propagandism.org --- content/base/src/nsXMLHttpRequest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/base/src/nsXMLHttpRequest.cpp b/content/base/src/nsXMLHttpRequest.cpp index 11d9c7cf3440..830b97b6986d 100644 --- a/content/base/src/nsXMLHttpRequest.cpp +++ b/content/base/src/nsXMLHttpRequest.cpp @@ -1258,7 +1258,7 @@ nsXMLHttpRequest::Send(nsIVariant *aBody) nsCOMPtr uploadChannel(do_QueryInterface(httpChannel)); NS_ASSERTION(uploadChannel, "http must support nsIUploadChannel"); - rv = uploadChannel->SetUploadStream(postDataStream, NS_LITERAL_CSTRING(""), -1); + rv = uploadChannel->SetUploadStream(postDataStream, EmptyCString(), -1); // Reset the method to its original value if (httpChannel) { httpChannel->SetRequestMethod(method); @@ -1278,7 +1278,7 @@ nsXMLHttpRequest::Send(nsIVariant *aBody) } // Create an empty document from it (resets current document as well) - nsString emptyStr; + const nsAString& emptyStr = EmptyString(); rv = implementation->CreateDocument(emptyStr, emptyStr, nsnull,