Closed Bug 442256 Opened 16 years ago Closed 16 years ago

Make getURIs/IndicesForSelection easier to call from JS

Categories

(MailNews Core :: Backend, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9.1a1

People

(Reporter: neil, Assigned: neil)

References

Details

Attachments

(1 file)

Currently they use two out params because one is an array but we can make that one a retval to make the usage simpler.
Attached patch Proposed patchSplinter Review
I had to reorder the parameters too, but that's just a simple tweak.
Assignee: nobody → neil
Status: NEW → ASSIGNED
Attachment #327122 - Flags: superreview?(bienvenu)
Attachment #327122 - Flags: review?(bienvenu)
Comment on attachment 327122 [details] [diff] [review] Proposed patch Ironically, these methods are never called from c++, which means we could simply drop the length out parameter, since the js callers never need it. GetIndicesForSelection won't be needed from c++ since those callers just use GetSelectedIndices, but I could imagine GetURIsForSelection might be used from c++.
Attachment #327122 - Flags: superreview?(bienvenu)
Attachment #327122 - Flags: superreview+
Attachment #327122 - Flags: review?(bienvenu)
Attachment #327122 - Flags: review+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Depends on: 442337
Target Milestone: --- → mozilla1.9.1a1
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: