Closed Bug 539699 Opened 15 years ago Closed 13 years ago

ITypeInfo nsAccessibleWrap member should be static

Categories

(Core :: Disability Access APIs, defect)

All
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla12

People

(Reporter: surkov, Assigned: drexler)

References

(Blocks 1 open bug)

Details

(Keywords: access, Whiteboard: [good first bug][mentor=surkov.alexander@gmail.com][lang=c++])

Attachments

(1 file, 3 obsolete files)

Whiteboard: [good first bug][mentor=surkov.alexander@gmail.com][lang=c++]
Attached patch Patch v1 (obsolete) — Splinter Review
Assignee: nobody → andrew.quartey
Attachment #582569 - Flags: review?(surkov.alexander)
Comment on attachment 582569 [details] [diff] [review] Patch v1 Review of attachment 582569 [details] [diff] [review]: ----------------------------------------------------------------- ::: accessible/src/msaa/nsAccessibleWrap.h @@ -358,4 +358,4 @@ > > */ > > ITypeInfo *GetTI(LCID lcid); > > > > - ITypeInfo *mTypeInfo; > > + static ITypeInfo *mTypeInfo; > > + static ITypeInfo *mTypeInfo; The coding style in accessibility would be to write ITypeInfo* (the * stuck to the type, space after)
Attached patch Patch v2 (obsolete) — Splinter Review
Coding style changes per Hub's suggestion.
Attachment #582569 - Attachment is obsolete: true
Attachment #582588 - Flags: review?(surkov.alexander)
Attachment #582569 - Flags: review?(surkov.alexander)
Comment on attachment 582588 [details] [diff] [review] Patch v2 >- ITypeInfo *GetTI(LCID lcid); >+ ITypeInfo* GetTI(LCID lcid); make it static too.
Attachment #582588 - Flags: review?(surkov.alexander) → review+
Attached patch Patch v3 (obsolete) — Splinter Review
made GetTI() a static function although i think it's not that necessary since the only current callers are all members of nsAccessibleWrap.
Attachment #582588 - Attachment is obsolete: true
Attachment #583707 - Flags: review?(trev.saunders)
(In reply to andrew (:drexler) from comment #6) > made GetTI() a static function although i think it's not that necessary > since the only current callers are all members of nsAccessibleWrap. static for a C++ method has nothing to do with visibility (ie who calls it).
Attachment #583707 - Flags: review+
Comment on attachment 583707 [details] [diff] [review] Patch v3 review isn't necessary here since already granted.
Attachment #583707 - Flags: review?(trev.saunders) → review+
Comment on attachment 583707 [details] [diff] [review] Patch v3 Hub, its fine in this case since review was already granted, and the patch is fine, but in general only the module owner / peers or someone they request review from should grant it.
Attachment #583707 - Flags: review+
I was about to check this in, but realized that I somehow missed asking you to change the name from mTypeInfo to gTypeInfo since its now static
Attached patch Patch v4Splinter Review
mTypeInfo renamed to gTypeInfo
Attachment #583707 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla12
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: