fix some review comments that missed prev push for bug 647000, r=neil
authorDavid Bienvenu <bienvenu@nventure.com>
Thu, 07 Apr 2011 09:29:33 -0700
changeset 7519 d8a5c55ca78bb68eafd625469e2bf86c3172ca94
parent 7518 283cf841daac94fade5f350f27533999276f5fc4
child 7520 a44d9edd4600a278376f323e280378d14b47a679
push idunknown
push userunknown
push dateunknown
reviewersneil
bugs647000
fix some review comments that missed prev push for bug 647000, r=neil
mailnews/imap/src/nsImapProtocol.cpp
--- a/mailnews/imap/src/nsImapProtocol.cpp
+++ b/mailnews/imap/src/nsImapProtocol.cpp
@@ -372,17 +372,17 @@ nsImapProtocol::nsImapProtocol() : nsMsg
     m_urlReadyToRunMonitor("imapUrlReadyToRun"),
     m_pseudoInterruptMonitor("imapPseudoInterrupt"),
     m_dataMemberMonitor("imapDataMember"),
     m_threadDeathMonitor("imapThreadDeath"),
     m_waitForBodyIdsMonitor("imapWaitForBodyIds"),
     m_fetchMsgListMonitor("imapFetchMsgList"),
     m_fetchBodyListMonitor("imapFetchBodyList"),
     m_passwordReadyMonitor("imapPasswordReady"),
-     m_parser(*this)
+    m_parser(*this)
 {
   m_urlInProgress = PR_FALSE;
   m_idle = PR_FALSE;
   m_retryUrlOnError = PR_FALSE;
   m_useIdle = PR_TRUE; // by default, use it
   m_useCondStore = PR_TRUE;
   m_useCompressDeflate = PR_TRUE;
   m_ignoreExpunges = PR_FALSE;
@@ -8181,28 +8181,28 @@ nsImapProtocol::OnPromptStart(PRInt32 *a
 NS_IMETHODIMP
 nsImapProtocol::OnPromptAuthAvailable()
 {
   nsresult rv;
   nsCOMPtr<nsIMsgIncomingServer> imapServer = do_QueryReferent(m_server, &rv);
   NS_ENSURE_SUCCESS(rv, rv);
   m_passwordStatus = imapServer->GetPassword(m_password);
   // Notify the imap thread that we have a password.
-  MonitorAutoEnter mon(m_passwordReadyMonitor);
-  mon.Notify();
+  MonitorAutoEnter passwordMon(m_passwordReadyMonitor);
+  passwordMon.Notify();
   return m_passwordStatus;
 }
 
 NS_IMETHODIMP
 nsImapProtocol::OnPromptCanceled()
 {
   // A prompt was cancelled, so notify the imap thread.
   m_passwordStatus = NS_MSG_PASSWORD_PROMPT_CANCELLED;
-  MonitorAutoEnter mon(m_passwordReadyMonitor);
-  mon.Notify();
+  MonitorAutoEnter passwordMon(m_passwordReadyMonitor);
+  passwordMon.Notify();
   return NS_OK;
 }
 
 PRBool nsImapProtocol::TryToLogon()
 {
   PR_LOG(IMAP, PR_LOG_DEBUG, ("try to log in"));
   NS_ENSURE_TRUE(m_imapServerSink, false);
   PRBool loginSucceeded = PR_FALSE;