Status
()
People
(Reporter: david, Assigned: jdunn)
Tracking
({qawanted})
Firefox Tracking Flags
(Not tracked)
Details
Attachments
(1 attachment)
830 bytes,
patch
|
Brade
:
review+
alecf
:
superreview+
|
Details | Diff | Splinter Review |
The line: msgId = aIsReadError ? NS_LITERAL_STRING("readError") : NS_LITERAL_STRING("writeError"); creates an internal compiler error. I have tried several ways to rewrite this line and am unsure if I am doing it correctly. Let me know how you would rewrite this line. Thanks.
if (aIsReadError) { msgId = NS_LITERAL_STRING("readError"); } else { msgId = NS_LITERAL_STRING("writeError"); }
What is xlC? The if/else should do the trick, but it sounds like the compiler has a problem (with Unichar strings?) if it can't compile something like this.
xlC is the c++ compiler on AIX. Yes xlC has a problem but it is based on how msgId = aIsReadError ? NS_LITERAL_STRING("readError") : NS_LITERAL_STRING("writeError"); and how temporary variables/registers are used and then assigned. The fact that msgID = NS_LITERAL_STRING("readError") works but the above doesn't indicates that it is not so much an issue with Unichar strings but more on the code syntax and how NS_LITERAL_STRING is defined.
Comment 5•17 years ago
|
||
does the if() version work? if so, we should just go with that. what type is msgId?
msgId is an nsAutoString: http://lxr.mozilla.org/seamonkey/source/embedding/components/webbrowserpersist/src/nsWebBrowserPersist.cpp#873
Created attachment 84311 [details] [diff] [review] This patch works for me on xlC 3.6.4
Comment 8•17 years ago
|
||
Comment on attachment 84311 [details] [diff] [review] This patch works for me on xlC 3.6.4 r=brade
Attachment #84311 -
Flags: review+
Comment 9•17 years ago
|
||
Comment on attachment 84311 [details] [diff] [review] This patch works for me on xlC 3.6.4 sr=alecf
Attachment #84311 -
Flags: superreview+
(Assignee) | ||
Comment 10•17 years ago
|
||
fix checked into trunk
Status: UNCONFIRMED → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → FIXED
(Reporter) | ||
Comment 12•17 years ago
|
||
I am no longer compiling mozilla, so am unable to verify the fix.
Updated•11 years ago
|
Keywords: verifyme
You need to log in
before you can comment on or make changes to this bug.
Description
•