Bug 1209351 (part 6) - Optimize nsTHashTable::RemoveEntry() usage in toolkit/. r=froydnj.

This commit is contained in:
Nicholas Nethercote 2015-09-24 21:38:04 -07:00
parent 434138fa6d
commit dc00b9310b
4 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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;
}

View File

@ -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;

View File

@ -3090,7 +3090,7 @@ TakeMinidumpForChild(uint32_t childPid, nsIFile** dump, uint32_t* aSequence)
*aSequence = pd->sequence;
}
pidToMinidump->RemoveEntry(childPid);
pidToMinidump->RemoveEntry(pd);
return !!*dump;
}