mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 680327 - Use NS_LITERAL_CSTRING instead of nsDependentCString. r=honzab
--HG-- extra : rebase_source : ce5c1c378ba1d99d427071dd3715e53bf7f50847
This commit is contained in:
parent
ac59fbbe7c
commit
bf7734aa5c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user