Closed
Bug 420616
Opened 17 years ago
Closed 16 years ago
Drop nsISupportsArray usage from nsImapIncomingServer
Categories
(MailNews Core :: Backend, defect)
MailNews Core
Backend
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.9
People
(Reporter: standard8, Assigned: standard8)
References
Details
Attachments
(2 files, 2 obsolete files)
(deleted),
patch
|
Bienvenu
:
review+
Bienvenu
:
superreview+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review |
As with the ongoing effort, dropping nsISupportsArray from here tidies the code a bit and will introduce some additional type safety.
Attachment #306910 -
Flags: superreview?(dmose)
Attachment #306910 -
Flags: review?(dmose)
Assignee | ||
Comment 1•16 years ago
|
||
Updated patch to fix bitrot.
Attachment #306910 -
Attachment is obsolete: true
Attachment #321037 -
Flags: superreview?(bienvenu)
Attachment #321037 -
Flags: review?(bienvenu)
Attachment #306910 -
Flags: superreview?(dmose)
Attachment #306910 -
Flags: review?(dmose)
Comment 2•16 years ago
|
||
Comment on attachment 321037 [details] [diff] [review]
The fix v2
One nit: This comment is now wrong, and you could just use NS_ENSURE_ARG_POINTER.
// can't have both be null, but one null is OK, since the caller
// may just be trying to count the number of unverified folders.
- if (!aFoldersArray && !aNumUnverifiedFolders)
+ if (!aNumUnverifiedFolders)
return NS_ERROR_NULL_POINTER;
Attachment #321037 -
Flags: superreview?(bienvenu)
Attachment #321037 -
Flags: superreview+
Attachment #321037 -
Flags: review?(bienvenu)
Attachment #321037 -
Flags: review+
Assignee | ||
Comment 3•16 years ago
|
||
After looking at David's comments and doing a bit more investigation, I realised that GetUnverifiedFolders is only called once (and isn't an interface defined function) and the count is actually unnecessary because it always wants the folder array - hence just use the count from the nsCOMArray.
So I've reworked GetUnverifiedFolders and GetUnverifiedSubFolders to not do the count and not return anything - the array just gets passed in as a reference and modified appropriately.
Attachment #321037 -
Attachment is obsolete: true
Attachment #321305 -
Flags: superreview?(bienvenu)
Attachment #321305 -
Flags: review?(bienvenu)
Assignee | ||
Comment 4•16 years ago
|
||
Comment 5•16 years ago
|
||
Comment on attachment 321305 [details] [diff] [review]
The fix v3 (diff -w)
thx, Mark.
Attachment #321305 -
Flags: superreview?(bienvenu)
Attachment #321305 -
Flags: superreview+
Attachment #321305 -
Flags: review?(bienvenu)
Attachment #321305 -
Flags: review+
Assignee | ||
Comment 6•16 years ago
|
||
Patch checked in -> fixed.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•