switch to nsCRT string routines and PR_TRUE/PR_FALSE to reduce include dependancies

This commit is contained in:
alecf%netscape.com 1999-09-08 03:09:39 +00:00
parent 8c203fba2a
commit 4cc78e6faf
4 changed files with 10 additions and 8 deletions

View File

@ -181,7 +181,7 @@ nsresult nsMsgFolderCache::InitExistingDB()
if (NS_SUCCEEDED(err) && rowCursor)
{
// iterate over the table rows and create nsMsgFolderCacheElements for each.
while (TRUE)
while (PR_TRUE)
{
nsresult rv;
nsIMdbRow* hdrRow;

View File

@ -17,6 +17,7 @@
*/
#include "msgCore.h" // precompiled header...
#include "prlog.h"
#include "nsMsgFolderDataSource.h"
#include "nsMsgFolderFlags.h"

View File

@ -239,7 +239,7 @@ NS_IMETHODIMP nsMsgImapMailFolder::GetRequiresCleanup(PRBool *requiresCleanup)
PRBool purgePrompt = m_master->GetPrefs()->GetPurgeThreshholdEnabled();;
return (purgePrompt && m_expungedBytes / 1000L > purgeThreshhold);
}
return FALSE;
return PR_FALSE;
#endif
return NS_OK;
}
@ -298,12 +298,12 @@ NS_IMETHODIMP nsMsgImapMailFolder::GetHostName(char** hostName)
NS_IMETHODIMP nsMsgImapMailFolder::UserNeedsToAuthenticateForFolder(PRBool displayOnly, PRBool *authenticate)
{
#ifdef HAVE_PORT
PRBool ret = FALSE;
PRBool ret = PR_FALSE;
if (m_master->IsCachePasswordProtected() && !m_master->IsUserAuthenticated() && !m_master->AreLocalFoldersAuthenticated())
{
char *savedPassword = GetRememberedPassword();
if (savedPassword && XP_STRLEN(savedPassword))
ret = TRUE;
if (savedPassword && nsCRT::strlen(savedPassword))
ret = PR_TRUE;
FREEIF(savedPassword);
}
return ret;
@ -316,7 +316,7 @@ NS_IMETHODIMP nsMsgImapMailFolder::RememberPassword(const char *password)
{
#ifdef HAVE_DB
MailDB *mailDb = NULL;
MailDB::Open(m_pathName, TRUE, &mailDb);
MailDB::Open(m_pathName, PR_TRUE, &mailDb);
if (mailDb)
{
mailDb->SetCachedPassword(password);
@ -352,11 +352,11 @@ NS_IMETHODIMP nsMsgImapMailFolder::GetRememberedPassword(char ** password)
{
char *retPassword = NULL;
MailDB *mailDb = NULL;
MailDB::Open(m_pathName, FALSE, &mailDb, FALSE);
MailDB::Open(m_pathName, PR_FALSE, &mailDb, PR_FALSE);
if (mailDb)
{
mailDb->GetCachedPassword(cachedPassword);
retPassword = XP_STRDUP(cachedPassword);
retPassword = nsCRT::strdup(cachedPassword);
mailDb->Close();
}

View File

@ -17,6 +17,7 @@
*/
#include "msgCore.h" // precompiled header...
#include "prlog.h"
#include "nsMsgMessageDataSource.h"
#include "nsMsgRDFUtils.h"