Closed
Bug 1172761
Opened 7 years ago
Closed 7 years ago
Remove two uses of PL_DHashTableEnumerate() from XPCOM
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
Details
Attachments
(2 files, 2 obsolete files)
2.16 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
2.77 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
Because PLDHashTable::Iterator is much nicer than PL_DHashTableEnumerate().
![]() |
Assignee | |
Updated•7 years ago
|
Blocks: modernize-pldhash
![]() |
Assignee | |
Comment 1•7 years ago
|
||
Attachment #8617062 -
Flags: review?(nfroyd)
![]() |
Assignee | |
Comment 2•7 years ago
|
||
BTW, is the raw |nsPropertyElement*| kosher or should it be |nsRefPtr<nsPropertyElement>|?
Attachment #8617064 -
Flags: review?(nfroyd)
![]() |
Assignee | |
Comment 3•7 years ago
|
||
Attachment #8617154 -
Flags: review?(nfroyd)
![]() |
Assignee | |
Updated•7 years ago
|
Attachment #8617062 -
Attachment is obsolete: true
Attachment #8617062 -
Flags: review?(nfroyd)
![]() |
Assignee | |
Comment 4•7 years ago
|
||
Attachment #8617157 -
Flags: review?(nfroyd)
![]() |
Assignee | |
Updated•7 years ago
|
Attachment #8617064 -
Attachment is obsolete: true
Attachment #8617064 -
Flags: review?(nfroyd)
![]() |
||
Updated•7 years ago
|
Attachment #8617154 -
Flags: review?(nfroyd) → review+
![]() |
||
Comment 5•7 years ago
|
||
Comment on attachment 8617157 [details] [diff] [review] (part 2) - Remove PL_DHashTableEnumerator use from nsPersistentProperties Review of attachment 8617157 [details] [diff] [review]: ----------------------------------------------------------------- ::: xpcom/ds/nsPersistentProperties.cpp @@ +577,5 @@ > + auto entry = static_cast<PropertyTableEntry*>(iter.NextEntry()); > + > + nsPropertyElement* element = > + new nsPropertyElement(nsDependentCString(entry->mKey), > + nsDependentString(entry->mValue)); Making this nsRefPtr<nsPropertyElement> would be good so that in the unlikely event that AppendObject fails, the nsPropertyElement doesn't leak.
Attachment #8617157 -
Flags: review?(nfroyd) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/a7e2543f579e https://hg.mozilla.org/integration/mozilla-inbound/rev/81073a8fcb41
https://hg.mozilla.org/mozilla-central/rev/a7e2543f579e https://hg.mozilla.org/mozilla-central/rev/81073a8fcb41
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in
before you can comment on or make changes to this bug.
Description
•