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)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: ayg, Assigned: ayg)

References

Details

Attachments

(1 file)

No description provided.
Attached patch Patch — — Splinter Review
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)
Attachment #651694 - Flags: review?(hsivonen) → review+
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.

Attachment

General

Created:
Updated:
Size: