Closed Bug 543001 Opened 14 years ago Closed 14 years ago

Make nsTArray::GreatestIndexLtEq easier to use

Categories

(Core :: XPCOM, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: neil, Assigned: neil)

Details

Attachments

(1 file)

Currently you are required to pass a comparator.
Attached patch Proposed patchSplinter Review
With tests.

I wasn't sure whether to use a pointer or reference. I didn't want to change the existing method because it would break code compiled against the 1.9.2 branch.
Assignee: nobody → neil
Status: NEW → ASSIGNED
Attachment #424226 - Flags: review?(benjamin)
Attachment #424226 - Flags: review?(benjamin) → review+
Pushed changeset 90e2907fc71f to mozilla-central.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: