Closed Bug 741702 Opened 12 years ago Closed 12 years ago

stop using QueryInterface in CAccessibleHyperlink

Categories

(Core :: Disability Access APIs, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 767264

People

(Reporter: surkov, Assigned: nickyekaiqi)

References

Details

(Whiteboard: [good first bug][mentor=trev.saunders@gmail.com][lang=c++])

Attachments

(1 file, 2 obsolete files)

same as bug 736252:

1) do static_cast<nsAccessible*>(this) instead do_QueryObject(this)
2) rename CAccessibleHyperlink to ia2AccessibleHyperlink
Want to get assigned
(In reply to Ye Kaiqi from comment #1)
> Want to get assigned

done
Assignee: nobody → nickyekaiqi
(In reply to alexander :surkov from comment #2)
> done

Thanks!
Attached patch patch v1 (obsolete) — Splinter Review
Attachment #613900 - Flags: feedback?
Comment on attachment 613900 [details] [diff] [review]
patch v1

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

remove QueryInterface from header

::: accessible/src/msaa/CAccessibleHyperlink.cpp
@@ +53,5 @@
>  {
>    *ppv = NULL;
>  
>    if (IID_IAccessibleHyperlink == iid) {
> +    nsRefPtr<nsAccessible> thisObj = static_cast<nsAccessible*>(this);

no nsRefPtr pls and everywhere below
Attachment #613900 - Flags: feedback?
(In reply to alexander :surkov from comment #5)
Thank you Alex for your help. I am trying to read the doc for nsRefPtr and other pointers to understand more. Hope in the future I will make fewer mistakes.
Attached patch patch v2 (obsolete) — Splinter Review
Attachment #613900 - Attachment is obsolete: true
Attachment #613950 - Flags: feedback?
(In reply to Ye Kaiqi from comment #6)
> (In reply to alexander :surkov from comment #5)
> Thank you Alex for your help. I am trying to read the doc for nsRefPtr and
> other pointers to understand more. Hope in the future I will make fewer
> mistakes.

Yeah, sure. Perhaps it makes sense to build the patch before asking for feedback so you'll be told about mistasks by compiler :) Please try your last patch.
Comment on attachment 613950 [details] [diff] [review]
patch v2


>--- a/accessible/src/msaa/CAccessibleHyperlink.cpp
>+++ b/accessible/src/msaa/CAccessibleHyperlink.cpp

btw, please rename CAccessibleHyperlink files into ia2AccessibleHyperlink. Don't forget to fix Makefile.in
Attachment #613950 - Flags: feedback?
Attached patch patch v3Splinter Review
Attachment #613950 - Attachment is obsolete: true
Attachment #614015 - Flags: feedback-
Attachment #614015 - Flags: feedback- → feedback?
Attachment #614015 - Flags: feedback? → feedback?(surkov.alexander)
Comment on attachment 614015 [details] [diff] [review]
patch v3

you just remove those files (but you need to "hg rename" them)
Attachment #614015 - Flags: feedback?(surkov.alexander) → feedback-
(In reply to alexander :surkov from comment #11)
> Comment on attachment 614015 [details] [diff] [review]
> patch v3
> 
> you just remove those files (but you need to "hg rename" them)

Hi, Alex.
It seems that my "hg rename accessible/src/msaa/CAccessibleHyperlink.h accessible/src/msaa/ia2AccessibleHyperlink.h" does not find the file. I asked some people on irc, but still cannot fix it. :(
(In reply to Ye Kaiqi from comment #12)

> It seems that my "hg rename accessible/src/msaa/CAccessibleHyperlink.h
> accessible/src/msaa/ia2AccessibleHyperlink.h" does not find the file. I
> asked some people on irc, but still cannot fix it. :(

I think this is because you removed them already. I'd recommend to start new patch since nothing useful excpet Makefile.in changes in existing patch (or alternatively try hg add)
> I think this is because you removed them already. I'd recommend to start new
> patch since nothing useful excpet Makefile.in changes in existing patch (or
> alternatively try hg add)

OK. I am trying that.
was fixed by duping bug 767264
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: