From de99f68040d9daaeec589d3a1dd268f2ad5ac50f Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Wed, 31 Mar 1999 19:27:36 +0000 Subject: [PATCH] Use nsAutoCString. --- mailnews/local/tests/mailbox/nsMsgMailboxParserStub.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mailnews/local/tests/mailbox/nsMsgMailboxParserStub.cpp b/mailnews/local/tests/mailbox/nsMsgMailboxParserStub.cpp index 8ed43746b42..914c64ebcea 100644 --- a/mailnews/local/tests/mailbox/nsMsgMailboxParserStub.cpp +++ b/mailnews/local/tests/mailbox/nsMsgMailboxParserStub.cpp @@ -82,9 +82,7 @@ NS_IMETHODIMP nsMsgMailboxParserStub::OnStatus(nsIURL* aURL, const PRUnichar* aM { printf("\n+++ nsMsgMailboxParserStub::OnStatus: "); nsString str(aMsg); - char* c = str.ToNewCString(); - fputs(c, stdout); - delete [] c; + fputs(nsAutoCString(str), stdout); fputs("\n", stdout); return 0;