Closed
Bug 394166
Opened 17 years ago
Closed 12 years ago
Remove Utility Function usage, create using XPCOM in mailnews
Categories
(MailNews Core :: Backend, defect)
MailNews Core
Backend
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: nick.kreeger, Assigned: nick.kreeger)
References
()
Details
Attachments
(1 file, 1 obsolete file)
15.05 KB,
patch
|
Details | Diff | Splinter Review |
To help with the push to frozen linkage, mailnews needs to get rid of utility function calls for creating objects. For example, there are many occurrences of |NS_NewISupportsArray|. Instead we should be using |do_CreateInstance(NS_SUPPORTSARRAY_CONTRACTID)|. I suppose the best way to tackle this it to do it the same way we did the |nsXPIDL*| string removal, one at a time.
Assignee | ||
Updated•17 years ago
|
Updated•17 years ago
|
OS: Mac OS X → All
Hardware: Macintosh → All
Assignee | ||
Comment 1•17 years ago
|
||
Here is the cleanup of all the classes in mailnews/imap that use the utility function.
Assignee: nobody → nick.kreeger
Status: NEW → ASSIGNED
Attachment #292162 -
Flags: superreview?(bienvenu)
Comment 2•17 years ago
|
||
Comment on attachment 292162 [details] [diff] [review] IMAP Fix V1 thx, Nick. One nit - I'm going to go out on a limb and say that things like this: + NS_ENSURE_TRUE(m_allFolders, NS_ERROR_FAILURE); should return NS_ERROR_OUT_OF_MEMORY instead, or pass in &rv to do_CreateInstance and NS_ENSURE_SUCCESS(rv, rv) to be sure to get the right error code.
Attachment #292162 -
Flags: superreview?(bienvenu) → superreview+
Assignee | ||
Comment 3•17 years ago
|
||
This patch addresses David's comments about getting the nsresult value to return in the NS_ERROR_FAILURE() calls.
Attachment #292162 -
Attachment is obsolete: true
Assignee | ||
Comment 4•17 years ago
|
||
Comment on attachment 294304 [details] [diff] [review] Checkin Patch Version [Checked In] Checked into trunk.
Attachment #294304 -
Attachment description: Checkin Patch Version → Checkin Patch Version [Checked In]
Comment 5•17 years ago
|
||
Actually nsISupportsArray is deprecated, and we should be looking into replacing it with nsI(Mutable)Array where possible.
Updated•16 years ago
|
Product: Core → MailNews Core
Comment 8•12 years ago
|
||
(In reply to neil@parkwaycc.co.uk from comment #5) > Actually nsISupportsArray is deprecated, and we should be looking into > replacing it with nsI(Mutable)Array where possible. Is anything more needed? If yes, should we close this and do meta with new bugs for "removal, one at a time"? http://mxr.mozilla.org/comm-central/search?find=%2Fmailnews%2Fbase%2F&string=NS_NewISupportsArray ?
Flags: needinfo?
Comment 9•12 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #8) > (In reply to neil@parkwaycc.co.uk from comment #5) > > Actually nsISupportsArray is deprecated, and we should be looking into > > replacing it with nsI(Mutable)Array where possible. i.e. bug 394167. which still has a couple unresolved bugs blocking it
Flags: needinfo?
Comment 11•12 years ago
|
||
My opinion: the goal of this bug is no longer valid, since, as Neil rightly points out, nsISupportsArray is deprecated in favour of nsIMutableArray. Switching us over to nsIMutableArray seems to be tracked in bug 394167. My position is to close this bug.
Flags: needinfo?(mconley)
Comment 12•12 years ago
|
||
Using FIXED since it had one patch
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•