diff --git a/mailnews/news/src/nsNewsFolder.cpp b/mailnews/news/src/nsNewsFolder.cpp index fa0eca46fc2..440053db543 100644 --- a/mailnews/news/src/nsNewsFolder.cpp +++ b/mailnews/news/src/nsNewsFolder.cpp @@ -499,7 +499,7 @@ NS_IMETHODIMP nsMsgNewsFolder::SetNewsrcHasChanged(PRBool newsrcHasChanged) return nntpServer->SetNewsrcHasChanged(newsrcHasChanged); } -NS_IMETHODIMP nsMsgNewsFolder::CreateSubfolder(const PRUnichar *uninewsgroupname) +NS_IMETHODIMP nsMsgNewsFolder::CreateSubfolder(const PRUnichar *uninewsgroupname, nsIMsgWindow *msgWindow) { nsresult rv = NS_OK; if (!uninewsgroupname) return NS_ERROR_NULL_POINTER; @@ -592,7 +592,7 @@ NS_IMETHODIMP nsMsgNewsFolder::Delete() return rv; } -NS_IMETHODIMP nsMsgNewsFolder::Rename(const PRUnichar *newName) +NS_IMETHODIMP nsMsgNewsFolder::Rename(const PRUnichar *newName, nsIMsgWindow *msgWindow) { NS_ASSERTION(0,"Rename not implemented"); return NS_ERROR_NOT_IMPLEMENTED; diff --git a/mailnews/news/src/nsNewsFolder.h b/mailnews/news/src/nsNewsFolder.h index 1eb4d0217e0..2090c7b8749 100644 --- a/mailnews/news/src/nsNewsFolder.h +++ b/mailnews/news/src/nsNewsFolder.h @@ -63,10 +63,10 @@ public: NS_IMETHOD GetMessages(nsIMsgWindow *aMsgWindow, nsISimpleEnumerator* *result); NS_IMETHOD UpdateFolder(nsIMsgWindow *aWindow); - NS_IMETHOD CreateSubfolder(const PRUnichar *folderName); + NS_IMETHOD CreateSubfolder(const PRUnichar *folderName,nsIMsgWindow *msgWindow); NS_IMETHOD Delete (); - NS_IMETHOD Rename (const PRUnichar *newName); + NS_IMETHOD Rename (const PRUnichar *newName, nsIMsgWindow *msgWindow); NS_IMETHOD Adopt(nsIMsgFolder *srcFolder, PRUint32 *outPos); NS_IMETHOD GetAbbreviatedName(PRUnichar * *aAbbreviatedName); diff --git a/mailnews/news/src/nsNntpIncomingServer.cpp b/mailnews/news/src/nsNntpIncomingServer.cpp index 59f25636c76..8e6e1d9644b 100644 --- a/mailnews/news/src/nsNntpIncomingServer.cpp +++ b/mailnews/news/src/nsNntpIncomingServer.cpp @@ -745,7 +745,7 @@ nsNntpIncomingServer::SubscribeToNewsgroup(const char *name) if (!msgfolder) return NS_ERROR_FAILURE; nsAutoString newsgroupName; newsgroupName.AssignWithConversion(name); - rv = msgfolder->CreateSubfolder(newsgroupName.GetUnicode()); + rv = msgfolder->CreateSubfolder(newsgroupName.GetUnicode(),nsnull); if (NS_FAILED(rv)) return rv; return NS_OK;