mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1209351 (part 6) - Optimize nsTHashTable::RemoveEntry() usage in toolkit/. r=froydnj.
This commit is contained in:
parent
434138fa6d
commit
dc00b9310b
@ -399,7 +399,7 @@ AsyncFetchAndSetIconForPage::start(nsIURI* aFaviconURI,
|
||||
|
||||
if (iconKey) {
|
||||
icon = iconKey->iconData;
|
||||
favicons->mUnassociatedIcons.RemoveEntry(aFaviconURI);
|
||||
favicons->mUnassociatedIcons.RemoveEntry(iconKey);
|
||||
} else {
|
||||
icon.fetchMode = aFetchMode;
|
||||
rv = aFaviconURI->GetSpec(icon.spec);
|
||||
|
@ -2011,7 +2011,7 @@ History::NotifyVisited(nsIURI* aURI)
|
||||
}
|
||||
|
||||
// All the registered nodes can now be removed for this URI.
|
||||
mObservers.RemoveEntry(aURI);
|
||||
mObservers.RemoveEntry(key);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -2188,7 +2188,7 @@ TelemetryImpl::UnregisterAddonHistograms(const nsACString &id)
|
||||
// will be deleted if and when the addon registers histograms with
|
||||
// the same names.
|
||||
delete addonEntry->mData;
|
||||
mAddonMap.RemoveEntry(id);
|
||||
mAddonMap.RemoveEntry(addonEntry);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
@ -3089,8 +3089,8 @@ TakeMinidumpForChild(uint32_t childPid, nsIFile** dump, uint32_t* aSequence)
|
||||
if (aSequence) {
|
||||
*aSequence = pd->sequence;
|
||||
}
|
||||
|
||||
pidToMinidump->RemoveEntry(childPid);
|
||||
|
||||
pidToMinidump->RemoveEntry(pd);
|
||||
|
||||
return !!*dump;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user