Open Bug 1488142 Opened 6 years ago Updated 2 years ago

Rename SetCapacity() to SetCapacityForMultipleAppends() or something more self-explanatory

Categories

(Core :: XPCOM, enhancement)

enhancement

Tracking

()

People

(Reporter: hsivonen, Unassigned)

References

Details

(See bug 1487612 comment 1.) SetCapacity() is a footgun, because our buffer sharing features undo its effects. Misuse could probably be reduced if the name of the method was clearer about its purpose. E.g. SetCapacityForMultipleAppends().
Component: String → XPCOM
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.