Port bug 1551782: Remove now-unused nsCOMArray::Forget and nsCOMArray::Adopt methods
Categories
(MailNews Core :: General, task)
Tracking
(Not tracked)
People
(Reporter: jorgk-bmo, Assigned: jorgk-bmo)
Details
Attachments
(1 file)
|
3.72 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
dist/include/msgIStructuredHeaders.h(75,11): error: no member named 'Adopt' in 'nsCOMArray<msgIAddressObject>'
Busted at midnight. Boris, is there a replacement? I haven't looked.
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
Looks like this will work:
// retval.Adopt(addresses, length);
retval.Clear();
retval.AppendElements(addresses, length);
free(addresses);
| Assignee | ||
Comment 3•6 years ago
|
||
First reviewer wins. Looks like we can hand-roll the function until we switch the interface.
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/d05d70ad9d05
Port bug 1551782: Hand-roll removed nsCOMArray::Adopt(). rs=bustage-fix
| Assignee | ||
Updated•6 years ago
|
Comment 5•6 years ago
|
||
Boris, is there a replacement?
No, sorry. I think I searched for Forget uses in comm-central before I realized I could remove Adopt too, and forgot to check for that one... :(
Comment 6•6 years ago
|
||
| Assignee | ||
Comment 7•6 years ago
|
||
Yes, that's part of bug 1551704. msgIStructuredHeaders.idl shows up in the 2nd search in bug 1551704 comment #3. There's a lot to do.
Updated•6 years ago
|
Description
•