Closed Bug 782606 Opened 13 years ago Closed 13 years ago

Use NS_FAILED instead of boolean test (dom/indexedDB/, dom/workers/)

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: ayg, Assigned: ayg)

References

Details

Attachments

(1 file)

No description provided.
Attached patch PatchSplinter Review
Testing an nsresult as a boolean isn't correct use of nsresult -- there are success codes other than NS_OK. (Although maybe there shouldn't be!) This will no longer compile when nsresult is an enum class, because enum classes can't be implicitly converted to other types. This shouldn't change behavior as long as nothing here uses success codes other than NS_OK. I wasn't able to easily verify that was the case here, but it seems likely.
Attachment #651709 - Flags: review?(jonas)
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: