зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1202526 (part 6) - Use PLDHashTable::RemoveEntry() in XULDocument. r=bz.
This avoids repeating the hash table search in order to remove the entry.
This commit is contained in:
Родитель
b1cf90c1e5
Коммит
abe8a4f58a
|
@ -839,7 +839,7 @@ XULDocument::RemoveBroadcastListenerFor(Element& aBroadcaster,
|
|||
delete bl;
|
||||
|
||||
if (entry->mListeners.IsEmpty())
|
||||
PL_DHashTableRemove(mBroadcasterMap, &aBroadcaster);
|
||||
mBroadcasterMap->RemoveEntry(entry);
|
||||
|
||||
break;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче