mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Fixed error to be an nsresult.
This commit is contained in:
parent
e5b145fcfe
commit
467799711d
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user