Closed
Bug 539699
Opened 15 years ago
Closed 13 years ago
ITypeInfo nsAccessibleWrap member should be static
Categories
(Core :: Disability Access APIs, defect)
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)
3.22 KB,
patch
|
Details | Diff | Splinter Review |
spun off bug 166994 comment #53
Reporter | ||
Comment 1•13 years ago
|
||
turn nsAccessibleWrap::mTypeInfo (http://mxr.mozilla.org/mozilla-central/source/accessible/src/msaa/nsAccessibleWrap.h#361) into static member
Whiteboard: [good first bug][mentor=surkov.alexander@gmail.com][lang=c++]
Assignee | ||
Comment 2•13 years ago
|
||
Assignee: nobody → andrew.quartey
Attachment #582569 -
Flags: review?(surkov.alexander)
Comment 3•13 years ago
|
||
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)
Assignee | ||
Comment 4•13 years ago
|
||
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 5•13 years ago
|
||
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+
Assignee | ||
Comment 6•13 years ago
|
||
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)
Comment 7•13 years ago
|
||
(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).
Updated•13 years ago
|
Attachment #583707 -
Flags: review+
Comment 8•13 years ago
|
||
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 9•13 years ago
|
||
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+
Comment 10•13 years ago
|
||
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
Assignee | ||
Comment 11•13 years ago
|
||
mTypeInfo renamed to gTypeInfo
Attachment #583707 -
Attachment is obsolete: true
Comment 12•13 years ago
|
||
https://hg.mozilla.org/projects/accessibility/rev/648239b7558d
thanks for the patch!
Comment 13•13 years ago
|
||
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Target Milestone: --- → mozilla12
You need to log in
before you can comment on or make changes to this bug.
Description
•