Closed
Bug 782602
Opened 14 years ago
Closed 14 years ago
Use NS_FAILED instead of boolean test for mBroken/IsBroken()
Categories
(Core :: DOM: HTML Parser, defect)
Core
DOM: HTML Parser
Tracking
()
RESOLVED
FIXED
mozilla17
People
(Reporter: ayg, Assigned: ayg)
References
Details
Attachments
(1 file)
|
3.50 KB,
patch
|
hsivonen
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•14 years ago
|
||
mBroken is an nsresult, and IsBroken() returns an nsresult. Testing them as though they were booleans won't compile when nsresult is an enum class, even though it will work fine as long as you don't use success codes other than NS_OK. So NS_FAILED/NS_SUCCEEDED need to be used here.
Attachment #651694 -
Flags: review?(hsivonen)
Updated•14 years ago
|
Attachment #651694 -
Flags: review?(hsivonen) → review+
| Assignee | ||
Comment 2•14 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/572b72100118
Green try: https://tbpl.mozilla.org/?tree=Try&rev=da4047717ef7
Flags: in-testsuite-
Comment 3•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
You need to log in
before you can comment on or make changes to this bug.
Description
•