зеркало из https://github.com/mozilla/gecko-dev.git
Bug 72781 rewrite getter_AddRefs(pAddressLists->ElementAt(j)) using QueryElementAt
patch by bugzilla@standard8.demon.co.uk r=bienvenu sr=bienvenu a=asa
This commit is contained in:
Родитель
841d9faff2
Коммит
344fb263d5
|
@ -813,11 +813,11 @@ nsresult nsAbDirectoryDataSource::DoDeleteCardsFromDirectory(nsIAbDirectory *dir
|
|||
PRUint32 item;
|
||||
for(item = 0; item < itemCount; item++)
|
||||
{
|
||||
nsCOMPtr<nsISupports> supports = getter_AddRefs(arguments->ElementAt(item));
|
||||
nsCOMPtr<nsIAbCard> deletedCard(do_QueryInterface(supports));
|
||||
nsCOMPtr<nsIAbCard> deletedCard(do_QueryElementAt(arguments, item));
|
||||
if (deletedCard)
|
||||
{
|
||||
cardArray->AppendElement(supports);
|
||||
rv = cardArray->AppendElement(deletedCard);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
}
|
||||
PRUint32 cnt;
|
||||
|
|
Загрузка…
Ссылка в новой задаче