From bf7734aa5cd4cde38df46f52197dd1180fd89147 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Fri, 13 Jan 2012 17:17:04 +0100 Subject: [PATCH] Bug 680327 - Use NS_LITERAL_CSTRING instead of nsDependentCString. r=honzab --HG-- extra : rebase_source : ce5c1c378ba1d99d427071dd3715e53bf7f50847 --- netwerk/protocol/about/nsAboutBloat.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/netwerk/protocol/about/nsAboutBloat.cpp b/netwerk/protocol/about/nsAboutBloat.cpp index be9e0dbb2b0..24f2daff335 100644 --- a/netwerk/protocol/about/nsAboutBloat.cpp +++ b/netwerk/protocol/about/nsAboutBloat.cpp @@ -86,16 +86,16 @@ nsAboutBloat::NewChannel(nsIURI *aURI, nsIChannel **result) if (clear) { nsTraceRefcntImpl::ResetStatistics(); - const char* msg = "Bloat statistics cleared."; - rv = NS_NewCStringInputStream(getter_AddRefs(inStr), nsDependentCString(msg)); + rv = NS_NewCStringInputStream(getter_AddRefs(inStr), + NS_LITERAL_CSTRING("Bloat statistics cleared.")); if (NS_FAILED(rv)) return rv; } else if (leaks) { // dump the current set of leaks. GC_gcollect(); - const char* msg = "Memory leaks dumped."; - rv = NS_NewCStringInputStream(getter_AddRefs(inStr), nsDependentCString(msg)); + rv = NS_NewCStringInputStream(getter_AddRefs(inStr), + NS_LITERAL_CSTRING("Memory leaks dumped.")); if (NS_FAILED(rv)) return rv; } else {