mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
fix mac bustage (use nsISupportsArray->ElementAt)
This commit is contained in:
parent
b99fba6098
commit
043d7935fd
@ -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)) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user