From 467799711d5a4e9488309567625b30be79a2ec80 Mon Sep 17 00:00:00 2001 From: "warren%netscape.com" Date: Tue, 13 Apr 1999 18:27:21 +0000 Subject: [PATCH] Fixed error to be an nsresult. --- xpcom/ds/nsSupportsArray.h | 4 ++-- xpcom/src/nsSupportsArray.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xpcom/ds/nsSupportsArray.h b/xpcom/ds/nsSupportsArray.h index 0072b0eb6cdc..18c1dd24302c 100644 --- a/xpcom/ds/nsSupportsArray.h +++ b/xpcom/ds/nsSupportsArray.h @@ -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); diff --git a/xpcom/src/nsSupportsArray.h b/xpcom/src/nsSupportsArray.h index 0072b0eb6cdc..18c1dd24302c 100644 --- a/xpcom/src/nsSupportsArray.h +++ b/xpcom/src/nsSupportsArray.h @@ -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);