Closed Bug 102096 Opened 25 years ago Closed 25 years ago

nsICharsetAlias uses nsString in and out params for GetPreferred() and Equals()

Categories

(Core :: Internationalization, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(3 files, 2 obsolete files)

nsICharsetAlias uses nsString in and out params for GetPreferred(). This means that calling if from a well-behaved method that's using nsAStrings involves two string copies. This is bad.
Blocks the bug I'm really working on....
Blocks: 95336
Attached patch Patch to fix this (obsolete) — — Splinter Review
Attachment #51218 - Attachment is obsolete: true
Reviews? ccing scc because there's string stuff and xpcom stuff here.
Keywords: patch, review
Summary: nsICharsetAlias uses nsString in and out params for GetPreferred() → nsICharsetAlias uses nsString in and out params for GetPreferred() and Equals()
Comment on attachment 51219 [details] [diff] [review] Forgot to change something that's in an #if 0.... r=ftang
Attachment #51219 - Flags: review+
Comment on attachment 51219 [details] [diff] [review] Forgot to change something that's in an #if 0.... Can we lose the .EqualsWithConversion("utf-8") in GetPreferred, and use an NS_LITERAL_STRING jobbie?
Attached patch kill EqualsWithConversion (obsolete) — — Splinter Review
shaver says sr=shaver on irc
bzbarsky: should I assign this bug to you?
sure. taking bug
Assignee: yokoyama → bzbarsky
Attachment #51314 - Attachment is obsolete: true
jag, could you take a look at this and review too? You said that it looked ok, but it sounded like you wanted to take some more time with it....
Comment on attachment 51411 [details] [diff] [review] Patch taking into account jag's landing from yesterday r=jag
Attachment #51411 - Flags: review+
checked in
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Switching QA contact to ftang for now. Frank, can this bug be verified within development or can you provide IQA with a test case? Thanks.
QA Contact: andreasb → ftang
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: