зеркало из https://github.com/mozilla/gecko-dev.git
fix mac bustage (use nsISupportsArray->ElementAt)
This commit is contained in:
Родитель
b99fba6098
Коммит
043d7935fd
|
@ -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)) ) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче