Closed Bug 1612245 Opened 5 years ago Closed 4 years ago

Replace idl nsIArray usage with Array<T> in nsIAutoSyncState.idl

Categories

(MailNews Core :: General, task)

task
Not set
normal

Tracking

(thunderbird_esr78 wontfix, thunderbird84 wontfix)

RESOLVED FIXED
85 Branch
Tracking Status
thunderbird_esr78 --- wontfix
thunderbird84 --- wontfix

People

(Reporter: benc, Assigned: benc)

References

Details

Attachments

(1 file)

mailnews/imap/public/nsIAutoSyncState.idl

Comment on attachment 9190136 [details] [diff] [review] 1612245-remove-nsIArray-from-nsIAutoSyncState-1.patch Review of attachment 9190136 [details] [diff] [review]: ----------------------------------------------------------------- ::: mailnews/imap/src/nsAutoSyncState.cpp @@ +669,3 @@ > while (x > toOffset && database) { > x--; > + if (q[x]) { but there can be no null headers, right?
Attachment #9190136 - Flags: review?(mkmelin+mozilla) → review+
Status: NEW → ASSIGNED
Target Milestone: --- → 85 Branch
> ::: mailnews/imap/src/nsAutoSyncState.cpp
> @@ +669,3 @@
> >      while (x > toOffset && database) {
> >        x--;
> > +      if (q[x]) {
> 
> but there can be no null headers, right?

There certainly shouldn't be, but a lot of code checks for it, so I'm not quite confident enough to remove these kinds of checks everywhere.
(The null checks we can remove are ones checking for missing nsIArray objects. No longer a problem if we're passing around nsTArray<> references instead of nsIArray*)

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/8cf7a7a83d99
Remove nsIArray usage from nsIAutoSyncState. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: