fix mac bustage (use nsISupportsArray->ElementAt)

This commit is contained in:
alecf%netscape.com 1999-06-02 03:08:13 +00:00
parent b99fba6098
commit 043d7935fd

View File

@ -194,7 +194,7 @@ nsDragService :: RegisterDragItemsAndFlavors ( nsISupportsArray * inArray )
unsigned int numDragItems = 0;
inArray->Count ( &numDragItems ) ;
for ( int itemIndex = 0; itemIndex < numDragItems; ++itemIndex ) {
nsCOMPtr<nsITransferable> currItem ( do_QueryInterface((*inArray)[itemIndex]) );
nsCOMPtr<nsITransferable> currItem ( do_QueryInterface(inArray->ElementAt(itemIndex)) );
if ( currItem ) {
nsVoidArray* flavorList = nsnull;
if ( NS_SUCCEEDED(currItem->FlavorsTransferableCanExport(&flavorList)) ) {