fix build warning, r/sr=sspitzer, no bug

This commit is contained in:
bienvenu%netscape.com 2002-08-30 16:11:45 +00:00
parent 24e1fab20d
commit 2034afd0ef
2 changed files with 1 additions and 3 deletions

View File

@ -245,8 +245,7 @@ void nsIMAPNamespaceList::ClearNamespaces(PRBool deleteFromPrefsNamespaces, PRBo
nsIMAPNamespace *nsIMAPNamespaceList::GetNamespaceNumber(int nodeIndex)
{
int total = GetNumberOfNamespaces();
NS_ASSERTION(nodeIndex >= 0 && nodeIndex < total, "invalid IMAP namespace node index");
NS_ASSERTION(nodeIndex >= 0 && nodeIndex < GetNumberOfNamespaces(), "invalid IMAP namespace node index");
if (nodeIndex < 0) nodeIndex = 0;
// XXX really could be just ElementAt; that's why we have the assertion

View File

@ -3141,7 +3141,6 @@ NS_IMETHODIMP nsImapService::NewURI(const nsACString &aSpec,
nsXPIDLCString folderName;
nsXPIDLCString urlPath;
PRBool possibleOtherUsersFolder = PR_FALSE;
// if we can't get a folder name out of the url then I think this is an error
aImapUrl->CreateCanonicalSourceFolderPathString(getter_Copies(folderName));