Closed Bug 1682943 Opened 5 years ago Closed 5 years ago

Replace idl nsISimpleEnumerator usage with Array<T> in mailnews/compose

Categories

(MailNews Core :: General, task)

task

Tracking

(thunderbird_esr78 wontfix)

RESOLVED FIXED
86 Branch
Tracking Status
thunderbird_esr78 --- wontfix

People

(Reporter: benc, Assigned: benc)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 1 obsolete file)

Replacing nsISimpleEnumerator with Array<> (where sensible!)

This covers:
mailnews/compose/public/nsIMsgCompFields.idl
mailnews/compose/public/nsISmtpService.idl

Assignee: nobody → benc
Attachment #9193781 - Flags: review?(mkmelin+mozilla)
Attachment #9193782 - Flags: review?(mkmelin+mozilla)

Those two are reasonably straightforward. The biggest (most annoying) changes are indentation.
https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=46d8f3ab36fca76ad9befcde9f3297f3a71030dd

Attachment #9193781 - Flags: review?(mkmelin+mozilla) → review+
Comment on attachment 9193782 [details] [diff] [review] 1682943-remove-nsISimpleEnumerator-in-nsIMsgCompFields-1.patch Review of attachment 9193782 [details] [diff] [review]: ----------------------------------------------------------------- ::: mail/components/compose/content/MsgComposeCommands.js @@ +5857,3 @@ > * > + * @param {nsIMsgAttachment[]} aAttachments - Objects to add as attachments. > + * @param {function} aCallback - An optional callback function called after Document that it's optional using brackets like this: @param {function} [aCallback] - @@ +5859,5 @@ > + * @param {function} aCallback - An optional callback function called after > + * adding each attachment. Takes one argument: the newly-added > + * <attachmentitem> node. > + * @param {Boolean} aContentChanged - Optional value to assign gContentChanged > + * after adding attachments; defaults to true. And with a default value like this: @param {Boolean} [aContentChanged=true]
Attachment #9193782 - Flags: review?(mkmelin+mozilla) → review+
Attachment #9193782 - Attachment is obsolete: true
Attachment #9193805 - Flags: review+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/ebdbcdfcf130
Remove nsISimpleEnumerator use in nsISmtpService.idl. r=mkmelin
https://hg.mozilla.org/comm-central/rev/a871e4f02dac
Remove nsISimpleEnumerator use in nsIMsgCompFields.idl. r=mkmelin

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: