Fixed nsICollection (and Count in particular) to be xpidl friendly.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user