fix mac bustage (use nsISupportsArray->ElementAt)

This commit is contained in:
alecf%netscape.com 1999-06-02 03:08:13 +00:00
Родитель b99fba6098
Коммит 043d7935fd
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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