Fixed nsICollection (and Count in particular) to be xpidl friendly.

This commit is contained in:
warren@netscape.com
1999-05-13 04:56:04 +00:00
parent b5ee243e1a
commit 7b44baf2c0
46 changed files with 897 additions and 281 deletions

View File

@@ -74,7 +74,10 @@ const char* AssertEqual(PRInt32 aValue1, PRInt32 aValue2)
void DumpArray(nsISupportsArray* aArray, PRInt32 aExpectedCount, PRInt32 aElementIDs[], PRInt32 aExpectedTotal)
{
PRInt32 count = aArray->Count();
PRUint32 cnt = 0;
nsresult rv = aArray->Count(&cnt);
NS_ASSERTION(NS_SUCCEEDED(rv), "Count failed");
PRInt32 count = cnt;
PRInt32 index;
fprintf(stdout, "object count %d = %d %s\n", IFoo::gCount, aExpectedTotal,