Closed Bug 1186792 Opened 4 years ago Closed 4 years ago

Replace nsBaseHashtable::EnumerateRead() calls in hal/ with iterators

Categories

(Core :: Hardware Abstraction Layer (HAL), defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla44
Tracking Status
firefox44 --- fixed

People

(Reporter: njn, Assigned: njn)

References

Details

Attachments

(1 file)

Because iterators are so much nicer than enumerate functions.

There are three occurrences of EnumerateRead() in this directory.

A note to the assignee: to preserve existing behaviour, you should probably use
nsBaseHashtable::Iterator::UserData() rather than nsBaseHashtable::Iterator::Data(). (The latter should be used when replacing nsBaseHashtable::Enumerate()).
Assignee: nobody → n.nethercote
Status: NEW → ASSIGNED
Comment on attachment 8676020 [details] [diff] [review]
Replace nsBaseHashtable::EnumerateRead() calls in hal/ with iterators

Review of attachment 8676020 [details] [diff] [review]:
-----------------------------------------------------------------

lgtm
Attachment #8676020 - Flags: review?(dhylands) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/4ee3dd50843ae3fb5bb849abacc7dfc46b6139b4
Bug 1186792 - Replace nsBaseHashtable::EnumerateRead() calls in hal/ with iterators. r=dhylands.
https://hg.mozilla.org/mozilla-central/rev/4ee3dd50843a
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in before you can comment on or make changes to this bug.