fix some enum typos, remove some non-scriptable enums, and fix some non XPCOM-compliant accessors

This commit is contained in:
alecf%netscape.com 2000-05-01 07:36:46 +00:00
Родитель 8cc1a94273
Коммит 9b6f0ec065
4 изменённых файлов: 4 добавлений и 13 удалений

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

@ -31,7 +31,7 @@ interface nsIMsgSearchValidityManager : nsISupports {
// eventually it would be nice to use atoms or something
const long onlineMail = 0;
const long offlineMailFilter = 1;
const long onlineMailFilter = 1;
const long offlineMail = 2;
const long localNews = 3;
const long news = 4;

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

@ -187,15 +187,6 @@ public:
nsresult PostProcessValidityTable (nsINNTPHost*);
enum {
onlineMail,
onlineMailFilter,
offlineMail,
localNews,
news,
newsEx
};
protected:
// There's one global validity manager that everyone uses. You *could* do

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

@ -189,10 +189,10 @@ NS_IMETHODIMP nsMsgFilter::SetScope(nsIMsgSearchScopeTerm *aResult)
NS_IMETHODIMP nsMsgFilter::GetScope(nsIMsgSearchScopeTerm **aResult)
{
if (aResult == NULL)
return NS_ERROR_NULL_POINTER;
NS_ENSURE_ARG_POINTER(aResult);
*aResult = m_scope;
NS_IF_ADDREF(*aResult);
return NS_OK;
}

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

@ -92,7 +92,7 @@ protected:
nsMsgFilterList *m_filterList; /* owning filter list */
nsMsgSearchTermArray m_termList; /* linked list of criteria terms */
nsIMsgSearchScopeTerm *m_scope; /* default for mail rules is inbox, but news rules could
nsCOMPtr<nsIMsgSearchScopeTerm> m_scope; /* default for mail rules is inbox, but news rules could
have a newsgroup - LDAP would be invalid */
};