зеркало из https://github.com/mozilla/pjs.git
Count() is no longer const
This commit is contained in:
Родитель
c33427bb89
Коммит
5fb14a79f5
|
@ -176,6 +176,13 @@ nsMsgFolder::GetSubFolders(nsIEnumerator* *result)
|
|||
return mSubFolders->Enumerate(result);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsMsgFolder::GetHasSubFolders(PRBool *_retval)
|
||||
{
|
||||
*_retval = (mSubFolders->Count() > 0);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP nsMsgFolder::AddFolderListener(nsIFolderListener * listener)
|
||||
{
|
||||
if (! mListeners)
|
||||
|
@ -289,7 +296,7 @@ NS_IMETHODIMP nsMsgFolder::SetPrettyName(char *name)
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP_(PRUint32) nsMsgFolder::Count(void) const
|
||||
NS_IMETHODIMP_(PRUint32) nsMsgFolder::Count(void)
|
||||
{
|
||||
return mSubFolders->Count();
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ public:
|
|||
NS_DECL_ISUPPORTS_INHERITED
|
||||
|
||||
// nsICollection methods:
|
||||
NS_IMETHOD_(PRUint32) Count(void) const;
|
||||
NS_IMETHOD_(PRUint32) Count(void);
|
||||
NS_IMETHOD AppendElement(nsISupports *aElement);
|
||||
NS_IMETHOD RemoveElement(nsISupports *aElement);
|
||||
NS_IMETHOD Enumerate(nsIEnumerator* *result);
|
||||
|
@ -57,6 +57,7 @@ public:
|
|||
NS_IMETHOD SetName(char *name);
|
||||
NS_IMETHOD GetChildNamed(const char *name, nsISupports* *result);
|
||||
NS_IMETHOD GetSubFolders(nsIEnumerator* *result);
|
||||
NS_IMETHOD GetHasSubFolders(PRBool *_retval);
|
||||
NS_IMETHOD AddFolderListener(nsIFolderListener * listener);
|
||||
NS_IMETHOD RemoveFolderListener(nsIFolderListener * listener);
|
||||
NS_IMETHOD GetParent(nsIFolder * *aParent);
|
||||
|
|
Загрузка…
Ссылка в новой задаче