Closed Bug 420616 Opened 17 years ago Closed 16 years ago

Drop nsISupportsArray usage from nsImapIncomingServer

Categories

(MailNews Core :: Backend, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(2 files, 2 obsolete files)

Attached patch The fix (obsolete) (deleted) — 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)
Attached patch The fix v2 (obsolete) (deleted) — Splinter Review
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 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+
Attached patch The fix v3 (diff -w) (deleted) — Splinter Review
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)
Attached patch The fix v3 (normal patch) (deleted) — Splinter Review
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+
Patch checked in -> fixed.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: