Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(823)

Unified Diff: ui/accessibility/platform/ax_platform_node_win.cc

Issue 2864523002: Rename ScopedComPtr::QueryInterface to ScopedComPtr::CopyTo (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/win/rdp_client_window.cc ('k') | ui/gfx/font_fallback_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/platform/ax_platform_node_win.cc
diff --git a/ui/accessibility/platform/ax_platform_node_win.cc b/ui/accessibility/platform/ax_platform_node_win.cc
index 239a2a654102795923ac6b6dff0d13067e187c96..43dc94dd6c0b9c7bb2b87c1a543f4bef7938e40f 100644
--- a/ui/accessibility/platform/ax_platform_node_win.cc
+++ b/ui/accessibility/platform/ax_platform_node_win.cc
@@ -245,7 +245,7 @@ int AXPlatformNodeWin::GetIndexInParent() {
base::win::ScopedComPtr<IAccessible> parent_accessible;
if (S_OK != get_accParent(parent_dispatch.Receive()))
return -1;
- if (S_OK != parent_dispatch.QueryInterface(parent_accessible.Receive()))
+ if (S_OK != parent_dispatch.CopyTo(parent_accessible.Receive()))
return -1;
LONG child_count = 0;
@@ -257,7 +257,7 @@ int AXPlatformNodeWin::GetIndexInParent() {
base::win::ScopedComPtr<IAccessible> child_accessible;
if (S_OK == parent_accessible->get_accChild(childid_index,
child_dispatch.Receive()) &&
- S_OK == child_dispatch.QueryInterface(child_accessible.Receive())) {
+ S_OK == child_dispatch.CopyTo(child_accessible.Receive())) {
if (child_accessible.Get() == this)
return index - 1;
}
« no previous file with comments | « remoting/host/win/rdp_client_window.cc ('k') | ui/gfx/font_fallback_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698