Fix build bustage: inaky.gonzales missed these two cases some how.

This commit is contained in:
waterson%netscape.com 2000-06-07 03:33:08 +00:00
Родитель 88d95c9720
Коммит 2983569e7d
2 изменённых файлов: 4 добавлений и 8 удалений

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

@ -953,8 +953,7 @@ nsFormControlList::AddElementToTable(nsIFormControl* aChild, const nsString& aNa
list->QueryInterface(NS_GET_IID(nsISupports),
getter_AddRefs(listSupports));
// Replace the element with the list.
nsISupports *old = (nsISupports *)mLookupTable->Put(&key, listSupports.get());
NS_IF_RELEASE(old); // Release the old value
mLookupTable->Put(&key, listSupports.get());
} else {
// There's already a list in the hash, add the child to the list
nsCOMPtr<nsIDOMNodeList> nodeList(do_QueryInterface(supports));
@ -1018,8 +1017,7 @@ nsFormControlList::RemoveElementFromTable(nsIFormControl* aChild)
if (node) {
nsCOMPtr<nsISupports> tmp(do_QueryInterface(node));
nsISupports *old = (nsISupports *)mLookupTable->Put(&key, tmp.get());
NS_IF_RELEASE(old); // Release the old value
mLookupTable->Put(&key, tmp.get());
}
}
}

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

@ -953,8 +953,7 @@ nsFormControlList::AddElementToTable(nsIFormControl* aChild, const nsString& aNa
list->QueryInterface(NS_GET_IID(nsISupports),
getter_AddRefs(listSupports));
// Replace the element with the list.
nsISupports *old = (nsISupports *)mLookupTable->Put(&key, listSupports.get());
NS_IF_RELEASE(old); // Release the old value
mLookupTable->Put(&key, listSupports.get());
} else {
// There's already a list in the hash, add the child to the list
nsCOMPtr<nsIDOMNodeList> nodeList(do_QueryInterface(supports));
@ -1018,8 +1017,7 @@ nsFormControlList::RemoveElementFromTable(nsIFormControl* aChild)
if (node) {
nsCOMPtr<nsISupports> tmp(do_QueryInterface(node));
nsISupports *old = (nsISupports *)mLookupTable->Put(&key, tmp.get());
NS_IF_RELEASE(old); // Release the old value
mLookupTable->Put(&key, tmp.get());
}
}
}