Closed
Bug 104723
Opened 23 years ago
Closed 15 years ago
nsAFlatCString::operator[] broken
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: dbaron, Assigned: jag+mozilla)
References
Details
nsAFlatCString::operator[] doesn't compile on gcc3. I think this is true of
other compilers too, and it has caused bustage in the past, but I couldn't find
a bug. The problem is a signed/unsigned issue:
/builds/cleanup/mozilla/gfx/src/nsColor.cpp:76: ambiguous overload for
`NS_LossyConvertUCS2toASCII& [int&]' operator
/builds/cleanup/mozilla/gfx/src/nsColor.cpp:76: candidates are:
operator[](const char*, int) <builtin>
../../dist/include/string/nsAFlatString.h:56: char
nsAFlatCString::operator[](unsigned int) const
Reporter | ||
Comment 1•23 years ago
|
||
jag, you fix this with the removal of implicit conversion, right? (For
everything except nsXPIDL[C]String, that is.)
Comment 3•22 years ago
|
||
giving up ancient string bugs to the new string owner. jag, you'll want to sort
through these and see which ones still apply and go with or against the
direction in which you intend strings evolve
Assignee: scc → jaggernaut
Updated•15 years ago
|
QA Contact: scc → string
Updated•15 years ago
|
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
Updated•4 years ago
|
Component: String → XPCOM
You need to log in
before you can comment on or make changes to this bug.
Description
•