Closed
Bug 1187188
Opened 10 years ago
Closed 10 years ago
Replace nsBaseHashtable::Enumerate() calls in comm-central with iterators
Categories
(MailNews Core :: Backend, defect)
MailNews Core
Backend
Tracking
(thunderbird46 unaffected, thunderbird47 fixed)
RESOLVED
FIXED
Thunderbird 47.0
Tracking | Status | |
---|---|---|
thunderbird46 | --- | unaffected |
thunderbird47 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
Details
Attachments
(4 files)
3.67 KB,
patch
|
rkent
:
review+
|
Details | Diff | Splinter Review |
12.85 KB,
patch
|
rkent
:
review+
|
Details | Diff | Splinter Review |
12.85 KB,
patch
|
rkent
:
review+
|
Details | Diff | Splinter Review |
3.80 KB,
patch
|
rkent
:
review+
|
Details | Diff | Splinter Review |
Because iterators are so much nicer than enumerate functions.
There are 13 occurrences of Enumerate() in comm-central:
- 1 in mailnews/addrbook/src/nsAbMDBDirectory.cpp
- 1 in mailnews/base/util/nsMsgIncomingServer.cpp
- 11 in mailnews/base/src/nsMsgAccountManager.cpp
A note to the assignee: to preserve existing behaviour, you should probably use
nsBaseHashtable::Iterator::Data() rather than nsBaseHashtable::Iterator::UserData(). (The latter should be used when replacing nsBaseHashtable::EnumerateRead()).
![]() |
Assignee | |
Comment 1•10 years ago
|
||
Attachment #8714132 -
Flags: review?(rkent)
![]() |
Assignee | |
Updated•10 years ago
|
Assignee: nobody → n.nethercote
Status: NEW → ASSIGNED
![]() |
Assignee | |
Comment 2•10 years ago
|
||
Attachment #8714133 -
Flags: review?(rkent)
![]() |
Assignee | |
Comment 3•10 years ago
|
||
Attachment #8714134 -
Flags: review?(rkent)
![]() |
Assignee | |
Comment 4•10 years ago
|
||
Attachment #8714135 -
Flags: review?(rkent)
![]() |
Assignee | |
Comment 5•10 years ago
|
||
I've checked that these patches compile but have not done any testing. Please check them carefully before landing. I will land the patches that remove the old enumeration functions in a couple of days, to give you some time to land these first.
This is the last of my PLDHashTable/nsTHashtable/nsBaseHashtable refactorings for now :)
Comment 6•10 years ago
|
||
Thanks or doing these, Nicholas. Just started to look at them today, it's been hectic!
Updated•10 years ago
|
Attachment #8714132 -
Flags: review?(rkent) → review+
Updated•10 years ago
|
Attachment #8714133 -
Flags: review?(rkent) → review+
Updated•10 years ago
|
Attachment #8714134 -
Flags: review?(rkent) → review+
Updated•10 years ago
|
Attachment #8714135 -
Flags: review?(rkent) → review+
Comment 7•10 years ago
|
||
http://hg.mozilla.org/comm-central/rev/ecea79aeec5e
http://hg.mozilla.org/comm-central/rev/4da904c02e1a
http://hg.mozilla.org/comm-central/rev/1cb65d027ed4
http://hg.mozilla.org/comm-central/rev/eaa2499c8877
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-thunderbird46:
--- → unaffected
status-thunderbird47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 47.0
You need to log in
before you can comment on or make changes to this bug.
Description
•