Closed Bug 664083 Opened 13 years ago Closed 13 years ago

warning in nsHTMLTableAccessible.cpp:325

Categories

(Core :: Disability Access APIs, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla7

People

(Reporter: tbsaunde, Assigned: tbsaunde)

Details

Attachments

(1 file)

      No description provided.
Attached patch patchSplinter Review
Attachment #539134 - Flags: review?(surkov.alexander)
Trevor, please give a warning message, otherwise it may be hard to understand what you fix here.
Comment on attachment 539134 [details] [diff] [review]
patch

Review of attachment 539134 [details] [diff] [review]:
-----------------------------------------------------------------

::: accessible/src/html/nsHTMLTableAccessible.cpp
@@ +321,1 @@
>  

I'd suggest to use enum (you should give it a name) instead PRInt32 and do
PRUint32 headerRole = aRowOrColumnHeaderCell == nsAccUtils::eRowHeaderCells ?
nsIAccessibleRole::ROLE_ROWHEADER : nsIAccessibleRole::ROLE_COLUMNHEADER;
Attachment #539134 - Flags: review?(surkov.alexander) → review+
Assignee: nobody → trev.saunders
(In reply to comment #3)
> Comment on attachment 539134 [details] [diff] [review] [review]
> patch
> 
> Review of attachment 539134 [details] [diff] [review] [review]:
> -----------------------------------------------------------------
> 
> ::: accessible/src/html/nsHTMLTableAccessible.cpp
> @@ +321,1 @@
> >  
> 
> I'd suggest to use enum (you should give it a name) instead PRInt32 and do
> PRUint32 headerRole = aRowOrColumnHeaderCell == nsAccUtils::eRowHeaderCells ?
> nsIAccessibleRole::ROLE_ROWHEADER : nsIAccessibleRole::ROLE_COLUMNHEADER;

yeah, that would be nice.  I was thinking about  changing the parameter to an enum  and returning  a pointer to the array instead of the out param in bug 648265.  How does that sound?
not sure how you treat "a pointer to the array" but array as return value vs out argument is fine with me.
landed http://hg.mozilla.org/mozilla-central/rev/b06efa3e0073
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla7
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: