From 47b40b7f144abccb0526695552dac1d7959b6eb9 Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Fri, 14 May 1999 00:21:52 +0000 Subject: [PATCH] nsCOMPtr audit and remove my stupid debugging comment git-svn-id: svn://10.0.0.236/trunk@31528 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/local/src/nsLocalUtils.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mozilla/mailnews/local/src/nsLocalUtils.cpp b/mozilla/mailnews/local/src/nsLocalUtils.cpp index 3ccfa41a7a9..db67bba3b1b 100644 --- a/mozilla/mailnews/local/src/nsLocalUtils.cpp +++ b/mozilla/mailnews/local/src/nsLocalUtils.cpp @@ -55,11 +55,9 @@ nsGetMailboxRoot(const char *hostname, nsFileSpec &result) if (NS_FAILED(rv)) return rv; // use enumeration function to find the first Pop server - nsISupports *serverSupports = hosts->ElementAt(0); + nsCOMPtr serverSupports = getter_AddRefs(hosts->ElementAt(0)); #ifdef DEBUG_alecf - if (hosts->Count() <= 0) - fprintf(stderr, "Augh, no pop server named %s?\n", hostname); if (!serverSupports) fprintf(stderr, "Huh, serverSupports returned nsnull\n"); #endif