Closed Bug 363767 Opened 19 years ago Closed 19 years ago

nsTArray needs an AppendElements(size_type) method

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: roc, Assigned: roc)

Details

Attachments

(1 file)

Sometimes, especially when using nsAutoTArray as a replacement for nsAutoBuffer, one wants to append a whole lot of uninitialized elements to the array, the way AppendElement() does.
Attached patch fixSplinter Review
Simple enhancement
Attachment #248573 - Flags: superreview?(bugmail)
Attachment #248573 - Flags: review?(bugmail)
Comment on attachment 248573 [details] [diff] [review] fix Looks good, though you may want to get darin to sign off on this since he's the owner.
Attachment #248573 - Flags: superreview?(bugmail)
Attachment #248573 - Flags: superreview+
Attachment #248573 - Flags: review?(bugmail)
Attachment #248573 - Flags: review+
Attachment #248573 - Flags: superreview+ → superreview?(darin.moz)
Attachment #248573 - Flags: superreview?(darin.moz) → superreview+
checked in
Status: NEW → RESOLVED
Closed: 19 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: