Bug 678453 - Fix some misuses of NS_ENSURE_ARG_POINTER; r=bienvenu
authorHiroyuki Ikezoe <hiikezoe@mozilla-japan.org>
Mon, 15 Aug 2011 19:52:23 +0100
changeset 8306 93daa0229bc738aade47133aa90ce401e3a28b69
parent 8305 d5bf69e8b36cff315ed9ff799988ad490988b65c
child 8307 69050ad29af01176ec99a8e94a91d0a55ef28d1a
push idunknown
push userunknown
push dateunknown
reviewersbienvenu
bugs678453
Bug 678453 - Fix some misuses of NS_ENSURE_ARG_POINTER; r=bienvenu
mailnews/imap/src/nsImapMailFolder.cpp
mailnews/import/applemail/src/nsAppleMailImport.cpp
--- a/mailnews/imap/src/nsImapMailFolder.cpp
+++ b/mailnews/imap/src/nsImapMailFolder.cpp
@@ -8532,17 +8532,17 @@ NS_IMETHODIMP nsImapMailFolder::FindOnli
     if (*aResultFolder)
      return rv;
   }
   return rv;
 }
 
 NS_IMETHODIMP nsImapMailFolder::GetFolderNeedsAdded(PRBool *bVal)
 {
-  NS_ENSURE_ARG_POINTER(*bVal);
+  NS_ENSURE_ARG_POINTER(bVal);
   *bVal = m_folderNeedsAdded;
   return NS_OK;
 }
 
 NS_IMETHODIMP nsImapMailFolder::SetFolderNeedsAdded(PRBool bVal)
 {
   m_folderNeedsAdded = bVal;
   return NS_OK;
--- a/mailnews/import/applemail/src/nsAppleMailImport.cpp
+++ b/mailnews/import/applemail/src/nsAppleMailImport.cpp
@@ -108,17 +108,17 @@ NS_IMETHODIMP nsAppleMailImportModule::G
 NS_IMETHODIMP nsAppleMailImportModule::GetDescription(PRUnichar **aName)
 {
   return mBundle ? 
     mBundle->GetStringFromID(APPLEMAILIMPORT_DESCRIPTION, aName) : NS_ERROR_FAILURE;
 }
 
 NS_IMETHODIMP nsAppleMailImportModule::GetSupports(char **aSupports)
 {
-  NS_ENSURE_ARG_POINTER(*aSupports);
+  NS_ENSURE_ARG_POINTER(aSupports);
   *aSupports = strdup(NS_IMPORT_MAIL_STR);
   return NS_OK;
 }
 
 NS_IMETHODIMP nsAppleMailImportModule::GetSupportsUpgrade(PRBool *aUpgrade)
 {
   NS_ENSURE_ARG_POINTER(aUpgrade);
   *aUpgrade = PR_FALSE;