79577. fix linux warnings. sr=bienvenu

This commit is contained in:
naving%netscape.com 2001-05-09 03:14:19 +00:00
parent 78646002ad
commit c79a0bc848
7 changed files with 5 additions and 17 deletions

View File

@ -4146,7 +4146,7 @@ nsMsgDBView::GetMsgToSelectAfterDelete(nsMsgViewIndex *msgToSelectAfterDelete)
}
if (mDeleteModel == nsMsgImapDeleteModels::IMAPDelete)
if (selectionCount > 1 || (endRange-startRange) > 0) //multiple selection either using Ctrl or Shift keys
*msgToSelectAfterDelete = -1;
*msgToSelectAfterDelete = nsMsgViewIndex_None;
else
*msgToSelectAfterDelete += 1;

View File

@ -200,7 +200,6 @@ nsFolderCompactState::CompactHelper(nsIMsgFolder *folder)
nsCOMPtr<nsIMsgDatabase> db;
nsCOMPtr<nsIDBFolderInfo> folderInfo;
nsCOMPtr<nsIMsgDatabase> mailDBFactory;
nsresult folderOpen = NS_OK;
nsCOMPtr<nsIFileSpec> pathSpec;
char *baseMessageURI;

View File

@ -155,8 +155,6 @@ nsMsgSearchDBView::OnSearchHit(nsIMsgDBHdr* aMsgHdr, nsIMsgFolder *folder)
NS_ENSURE_ARG(folder);
nsresult rv = NS_OK;
PRBool found = PR_FALSE;
nsCOMPtr <nsISupports> supports = do_QueryInterface(folder);
m_folders->AppendElement(supports);
nsMsgKey msgKey;
@ -354,7 +352,7 @@ nsMsgSearchDBView::OnStopCopy(nsresult aStatus)
{
mCurIndex++;
PRUint32 numFolders =0;
nsresult rv = m_uniqueFolders->Count(&numFolders);
rv = m_uniqueFolders->Count(&numFolders);
if ( mCurIndex < numFolders)
ProcessRequestsInOneFolder(mMsgWindow);
}

View File

@ -2141,7 +2141,8 @@ nsMsgFolder::CopyMessages(nsIMsgFolder* srcFolder,
PRBool isMove,
nsIMsgWindow *window,
nsIMsgCopyServiceListener* listener,
PRBool isFolder)
PRBool isFolder,
PRBool allowUndo)
{
return NS_ERROR_NOT_IMPLEMENTED;
}

View File

@ -135,7 +135,7 @@ public:
NS_IMETHOD GetFoldersWithFlag(PRUint32 flags, PRUint32 resultsize, PRUint32 *numFolders, nsIMsgFolder **result);
NS_IMETHOD GetExpansionArray(nsISupportsArray *expansionArray);
// NS_IMETHOD DeleteMessages(nsISupportsArray *message, nsITransactionManager *txnMgr, PRBool deleteStorage);
NS_IMETHOD CopyMessages(nsIMsgFolder *srcFolder, nsISupportsArray *messages, PRBool isMove, nsIMsgWindow *window, nsIMsgCopyServiceListener *listener, PRBool isFolder);
NS_IMETHOD CopyMessages(nsIMsgFolder *srcFolder, nsISupportsArray *messages, PRBool isMove, nsIMsgWindow *window, nsIMsgCopyServiceListener *listener, PRBool isFolder, PRBool allowUndo);
NS_IMETHOD CopyFolder(nsIMsgFolder *srcFolder,PRBool isMoveFolder, nsIMsgWindow *window, nsIMsgCopyServiceListener *listener);
NS_IMETHOD CopyFileMessage(nsIFileSpec *fileSpec, nsIMsgDBHdr *msgToReplace, PRBool isDraft, nsIMsgWindow *window, nsIMsgCopyServiceListener *listener);
NS_IMETHOD AcquireSemaphore(nsISupports *semHolder);

View File

@ -929,13 +929,6 @@ NS_IMETHODIMP nsMsgNewsFolder::GetSizeOnDisk(PRUint32 *size)
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsMsgNewsFolder::CopyMessages(nsIMsgFolder *srcFolder, nsISupportsArray* messages,
PRBool isMove, nsIMsgWindow *msgWindow,
nsIMsgCopyServiceListener* listener, PRBool isFolder, PRBool allowUndo)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* this is news, so remember that DeleteMessage is really CANCEL */
NS_IMETHODIMP
nsMsgNewsFolder::DeleteMessages(nsISupportsArray *messages, nsIMsgWindow *aMsgWindow,

View File

@ -85,9 +85,6 @@ public:
NS_IMETHOD DeleteMessages(nsISupportsArray *messages,
nsIMsgWindow *msgWindow, PRBool deleteStorage, PRBool isMove,
nsIMsgCopyServiceListener* listener, PRBool allowUndo);
NS_IMETHOD CopyMessages(nsIMsgFolder *srcFolder, nsISupportsArray* messages,
PRBool isMove, nsIMsgWindow *msgWindow,
nsIMsgCopyServiceListener* listener, PRBool isFolder, PRBool allowUndo);
NS_IMETHOD GetNewMessages(nsIMsgWindow *aWindow);
NS_IMETHOD GetCanSubscribe(PRBool *aResult);