Closed Bug 280921 Opened 20 years ago Closed 20 years ago

Kill nsCheapStringBufferUtils

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sicking, Assigned: sicking)

Details

Attachments

(1 file)

With darins recent changes that allows us to use the nsStringBuffer class, most
functions in nsCheapStringBufferUtils are just one or twoliners calling methods
in that class. In fact, after expanding such methods into nsAttrValue the only
function remaining is CopyToBuffer which is called at exactly one place. So it
felt a bit silly to keep even that one around.

The only functional impact of this change should be one refcount less when
cloning an nsAttrValue containing a string.
Status: NEW → ASSIGNED
Attached patch patch to fixSplinter Review
Alternativly we could create a more generic helperclass (one with a better
syntax too) that lives in xpcom/string
Attachment #173258 - Flags: superreview?(darin)
Attachment #173258 - Flags: review?(darin)
Attachment #173258 - Flags: superreview?(darin)
Attachment #173258 - Flags: superreview+
Attachment #173258 - Flags: review?(darin)
Attachment #173258 - Flags: review+
checked in. Thanks for review
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Component: DOM: Core → DOM: Core & HTML
QA Contact: ian → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: