bug 860027 - use entry->GetScriptableFlag() directly instead of sillyness through the nsIInterfaceInfo r=bsmedberg

This commit is contained in:
Trevor Saunders 2013-05-03 18:33:30 -04:00
parent e6f2cf55d3
commit 43181cfc4d

View File

@ -270,13 +270,11 @@ xpti_ArrayAppender(const char* name, xptiInterfaceEntry* entry, void* arg)
{
nsCOMArray<nsIInterfaceInfo>* array = static_cast<nsCOMArray<nsIInterfaceInfo>*>(arg);
nsCOMPtr<nsIInterfaceInfo> ii;
if (NS_SUCCEEDED(EntryToInfo(entry, getter_AddRefs(ii)))) {
bool scriptable = false;
ii->IsScriptable(&scriptable);
if (scriptable) {
array->AppendElement(ii);
}
if (entry->GetScriptableFlag()) {
nsCOMPtr<nsIInterfaceInfo> ii;
if (NS_SUCCEEDED(EntryToInfo(entry, getter_AddRefs(ii)))) {
array->AppendElement(ii);
}
}
return PL_DHASH_NEXT;
}