mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 860027 - use entry->GetScriptableFlag() directly instead of sillyness through the nsIInterfaceInfo r=bsmedberg
This commit is contained in:
parent
e6f2cf55d3
commit
43181cfc4d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user