Closed Bug 640978 Opened 13 years ago Closed 13 years ago

Various clean-ups to nsIRadioVisitor and its children

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla5

People

(Reporter: mounir, Assigned: mounir)

References

Details

Attachments

(1 file)

Attached patch Patch v1Splinter Review
Mostly changing:
NS_IMETHOD Visitor(nsIFormControl*, PRBool*)
to:
NS_IMETHOD_(bool) Visitor(nsIFormControl*)

Some s/PRBool/bool/ and maybe one or two random changes.
Attachment #518724 - Flags: review?(peterv)
I wonder if I can actually use NS_IMETHOD_(bool). Let me know if I should use NS_IMETHOD_(PRBool) instead.
Whiteboard: [needs review]
Comment on attachment 518724 [details] [diff] [review]
Patch v1

Why do we need |NS_IMETHOD_(bool)| instead of just |virtual bool|?
(In reply to comment #2)
> Comment on attachment 518724 [details] [diff] [review]
> Patch v1
> 
> Why do we need |NS_IMETHOD_(bool)| instead of just |virtual bool|?

I thought we need to use NS_IMETHOD for public methods in interfaces given that it is adding some things in addition of 'virtual' for some platforms. Am I wrong?

BTW, I should probably change bool to PRBool here. I've heard I shouldn't use that on interface's public methods.
Comment on attachment 518724 [details] [diff] [review]
Patch v1

Just change NS_IMETHOD_(bool) to |virtual PRBool|.
Attachment #518724 - Flags: review?(peterv) → review+
Whiteboard: [needs review] → [ready to land][waits for dependencies]
Pushed:
http://hg.mozilla.org/mozilla-central/rev/9d462cbed60f
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Whiteboard: [ready to land][waits for dependencies]
Target Milestone: --- → mozilla2.2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: