Fixed error to be an nsresult.

This commit is contained in:
warren%netscape.com 1999-04-13 18:27:21 +00:00
parent e5b145fcfe
commit 467799711d
2 changed files with 4 additions and 4 deletions

View File

@ -33,10 +33,10 @@ public:
// nsICollection methods:
NS_IMETHOD_(PRUint32) Count(void) const { return mCount; }
NS_IMETHOD AppendElement(nsISupports *aElement) {
return InsertElementAt(aElement, mCount);
return InsertElementAt(aElement, mCount) ? NS_OK : NS_ERROR_FAILURE;
}
NS_IMETHOD RemoveElement(nsISupports *aElement) {
return RemoveElement(aElement, 0);
return RemoveElement(aElement, 0) ? NS_OK : NS_ERROR_FAILURE;
}
NS_IMETHOD Enumerate(nsIEnumerator* *result);
NS_IMETHOD Clear(void);

View File

@ -33,10 +33,10 @@ public:
// nsICollection methods:
NS_IMETHOD_(PRUint32) Count(void) const { return mCount; }
NS_IMETHOD AppendElement(nsISupports *aElement) {
return InsertElementAt(aElement, mCount);
return InsertElementAt(aElement, mCount) ? NS_OK : NS_ERROR_FAILURE;
}
NS_IMETHOD RemoveElement(nsISupports *aElement) {
return RemoveElement(aElement, 0);
return RemoveElement(aElement, 0) ? NS_OK : NS_ERROR_FAILURE;
}
NS_IMETHOD Enumerate(nsIEnumerator* *result);
NS_IMETHOD Clear(void);