Replace nsIArray/nsIMutableArray with Array<T> in Thunderbird code
Categories
(MailNews Core :: General, task)
Tracking
(thunderbird_esr78 wontfix)
Tracking | Status | |
---|---|---|
thunderbird_esr78 | --- | wontfix |
People
(Reporter: benc, Assigned: benc)
References
Details
(Keywords: leave-open)
Attachments
(7 files)
12.35 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Bug 1583030 removed nsIArray use from the xpidl interfaces, but there are still a few internal uses we could ditch. So this is a catch-all bug for that.
Assignee | ||
Comment 1•3 years ago
|
||
Tidy up some cruft left over from Bug 1583030.
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/ad9236284ff6
Remove leftover MsgGetHeadersFromKeys2() helper (added for Bug 1583030). r=mkmelin
Assignee | ||
Comment 3•3 years ago
|
||
Also strips out nsIMutableArray use in nsMsgDatabase.
Assignee | ||
Comment 4•3 years ago
|
||
Updated•3 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/0710e3773fc4
Reduce nsMsgKey lookups in nsMsgDatabase::ApplyRetentionSettings(). r=mkmelin
https://hg.mozilla.org/comm-central/rev/3e726d4ed730
Remove leftover nsIArray helper BuildIdsAndKeyArray2() in nsImapMailFolder. r=mkmelin
Assignee | ||
Comment 6•3 years ago
|
||
Depends on D114315
Assignee | ||
Comment 7•3 years ago
|
||
(In reply to Ben Campbell from comment #6)
Created attachment 9220282 [details]
Bug 1692919 - Remove a bunch of obsolete nsIArray-related includes. r?mkmelinDepends on D114315
That's a complete lie ;-) It's a stand-alone patch, I just didn't realise that phab assumed that stacked-up changesets were dependent upon each other. Not an unreasonable assumption, so I'll be more careful in future!
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/6b6e447856af
Remove a bunch of obsolete nsIArray-related includes. r=mkmelin
Assignee | ||
Comment 9•3 years ago
|
||
Assignee | ||
Updated•3 years ago
|
Comment 10•3 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/04b86501fca6
Remove nsIMutableArray use in nsMsgDBView. r=mkmelin
Assignee | ||
Comment 11•3 years ago
|
||
Assignee | ||
Updated•3 years ago
|
Comment 12•3 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/e1d8b83f18f0
Remove obsolete MsgHdrsToTArray() from nsMsgUtils. r=mkmelin
Assignee | ||
Comment 13•2 years ago
|
||
Assignee | ||
Updated•2 years ago
|
Comment 14•2 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/2edb175ab6ea
Tidy away some leftover nsIMutableArray cruft. r=mkmelin
Comment 15•2 years ago
|
||
Can we close this now?
Assignee | ||
Comment 16•2 years ago
|
||
No... there are still a few tricky ones to remove:
- There are a bunch which are params to
nsIWindowWatcher.openWindow()
, and I don't think there's a non-nsIArray alternative. So those probably stay as they are. nsAbOutlookDirectory
,nsAbOSXDirectory
andnsAbDirProperty
use nsIMutableArray to deal with awkwardness in dealing with cards and mailinglists. Not sure what's involved here.- nsMsgCompUtils.cpp uses nsIArray to handle heterogeneous list of embedded objects. Don't know what to do with this one. Other than sitting down to go through the message composition code line by line to understand it properly :-)
Description
•