Closed Bug 398571 Opened 17 years ago Closed 17 years ago

PRBool misuse bugs in accessible/

Categories

(Core :: Disability Access APIs, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: taras.mozilla, Assigned: taras.mozilla)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch Autogenerated patch (obsolete) (deleted) — Splinter Review
Errors reported by prcheck
Attachment #283576 - Flags: review?(aaronleventhal)
Status: NEW → ASSIGNED
Attachment #283576 - Flags: review?(aaronleventhal) → review+
Attachment #283576 - Flags: approval1.9?
You replace the expression PRBool isEnabled = state & nsIAccessibleStates::STATE_CHECKED; on the PRBool isEnabled = 0 != (state & nsIAccessibleStates::STATE_CHECKED); The second expression looks a bit complex than the first one. Why do we need this? Afaik it doesn't lead to compilation warnings.
See bug 266048. PRBool are to only contain 0/1.
ok, thanks. a kind of complex assurance :)
Attachment #283576 - Flags: approval1.9? → approval1.9+
Attached patch Autogenerated patch (deleted) — Splinter Review
Using !! instead of 0 !=
Attachment #283576 - Attachment is obsolete: true
Checking in accessible/src/base/nsRootAccessible.cpp; /cvsroot/mozilla/accessible/src/base/nsRootAccessible.cpp,v <-- nsRootAccessible.cpp new revision: 1.235; previous revision: 1.234 done Checking in accessible/src/atk/nsAppRootAccessible.cpp; /cvsroot/mozilla/accessible/src/atk/nsAppRootAccessible.cpp,v <-- nsAppRootAccessible.cpp new revision: 1.39; previous revision: 1.38 done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: