Closed Bug 6742 Opened 26 years ago Closed 26 years ago

Conversion from nsString to PRChar* missing for nsString2

Categories

(Core :: Layout, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED WONTFIX

People

(Reporter: cmanske, Assigned: rickg)

Details

This causes the following error when compiling on Windows: : cannot convert parameter 1 from 'class nsString' to 'const unsigned short * (I've been using nsString2 since its origin and this is the first problem I encounterred. I was surprised we haven't converted over to it yet!)
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → WONTFIX
ACK! I've been telling folks that this API is going away for over a month now. You can't rely on this api because nsString2 can store 1 and 2 byte strings, and this API presumes 2 byte. Instead, you should call nsString2::GetUnicode().
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.