Bug 1695162 - Make nsTHashtable::ConstIter return a real ConstIterator. r=xpcom-reviewers,nika

Differential Revision: https://phabricator.services.mozilla.com/D107038
This commit is contained in:
Simon Giesecke
2021-03-09 10:28:16 +00:00
parent 05de2e40b7
commit 73866a5384
6 changed files with 98 additions and 55 deletions

View File

@@ -3964,7 +3964,7 @@ static unsigned MediaElementTableCount(HTMLMediaElement* aElement,
uint32_t uriCount = 0;
uint32_t otherCount = 0;
for (auto it = gElementTable->ConstIter(); !it.Done(); it.Next()) {
MediaElementSetForURI* entry = it.Get();
const MediaElementSetForURI* entry = it.Get();
uint32_t count = 0;
for (const auto& elem : entry->mElements) {
if (elem == aElement) {