newsgroup call to GetName is no longer a const method so the nsINNTPNewsgroup passed into the article list can't be const either....

performing clean up on the interface and implementation to fix this...
This commit is contained in:
mscott%netscape.com 1999-02-03 00:19:55 +00:00
Родитель 71afce77d3
Коммит 0ab856b299
3 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -27,7 +27,7 @@ class nsINNTPArticleList : public nsISupports {
}
/* <IDL> */
NS_IMETHOD Init(const nsINNTPHost *newsHost, const nsINNTPNewsgroup *newsgroup) = 0;
NS_IMETHOD Init(const nsINNTPHost *newsHost, nsINNTPNewsgroup *newsgroup) = 0;
/* <IDL> */
NS_IMETHOD AddArticleKey(PRInt32 key) = 0;

Просмотреть файл

@ -32,14 +32,14 @@ class nsNNTPArticleList : nsINNTPArticleList
{
public:
nsNNTPArticleList(const nsINNTPHost * newshost,
const nsINNTPNewsgroup* newsgroup);
nsINNTPNewsgroup* newsgroup);
/* , MSG_Pane *pane); */
virtual ~nsNNTPArticleList();
NS_DECL_ISUPPORTS
// nsINNTPArticleKeysState
NS_METHOD Init(const nsINNTPHost *newsHost,
const nsINNTPNewsgroup *newsgroup);
nsINNTPNewsgroup *newsgroup);
NS_IMETHOD AddArticleKey(PRInt32 key);
NS_IMETHOD FinishAddingArticleKeys();
@ -50,7 +50,7 @@ protected:
MSG_Pane *m_pane;
#endif
/* formerly m_groupName */
const nsINNTPNewsgroup *m_newsgroup;
nsINNTPNewsgroup *m_newsgroup;
const nsINNTPHost *m_host;
#ifdef HAVE_NEWSDB
NewsGroupDB *m_newsDB;
@ -68,7 +68,7 @@ protected:
NS_IMPL_ISUPPORTS(nsNNTPArticleList, IID())
nsNNTPArticleList::nsNNTPArticleList(const nsINNTPHost* newsHost,
const nsINNTPNewsgroup* newsgroup)
nsINNTPNewsgroup* newsgroup)
{
NS_INIT_REFCNT();
Init(newsHost, newsgroup);
@ -76,7 +76,7 @@ nsNNTPArticleList::nsNNTPArticleList(const nsINNTPHost* newsHost,
nsresult
nsNNTPArticleList::Init(const nsINNTPHost * newsHost,
const nsINNTPNewsgroup* newsgroup)
nsINNTPNewsgroup* newsgroup)
{
m_host = newsHost;
m_newsgroup = newsgroup;
@ -167,7 +167,7 @@ extern "C" {
nsresult
NS_NewArticleList(nsINNTPArticleList **articleList,
const nsINNTPHost* newsHost,
const nsINNTPNewsgroup* newsgroup)
nsINNTPNewsgroup* newsgroup)
{
nsNNTPArticleList* aArticleList =
new nsNNTPArticleList(newsHost, newsgroup);

Просмотреть файл

@ -237,7 +237,7 @@ PRInt32 net_NewsChunkSize=-1; /* default */
/* seconds that an idle NNTP conn can live */
extern "C"
{
nsresult NS_NewArticleList(nsINNTPArticleList **articleList, const nsINNTPHost* newsHost, const nsINNTPNewsgroup* newsgroup);
nsresult NS_NewArticleList(nsINNTPArticleList **articleList, const nsINNTPHost* newsHost, nsINNTPNewsgroup* newsgroup);
nsresult NS_NewNewsgroup(nsINNTPNewsgroup **info, char *line, nsNNTPArticleSet *set, PRBool subscribed, nsINNTPHost *host, int depth);
nsresult NS_NewNewsgroupList(nsINNTPNewsgroupList **aInstancePtrResult, nsINNTPHost *newsHost, nsINNTPNewsgroup *newsgroup);
}