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

Unified Diff: content/browser/accessibility/accessibility_event_recorder_win.cc

Issue 985853005: base: Remove operator& from ScopedVariant and ScopedPropVariant. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scoped-operator: ptr() Created 5 years, 9 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
Index: content/browser/accessibility/accessibility_event_recorder_win.cc
diff --git a/content/browser/accessibility/accessibility_event_recorder_win.cc b/content/browser/accessibility/accessibility_event_recorder_win.cc
index 8bbc890e446a5f89086c0f9fc667cf7f3c80818a..6c59aa1eb3306e6a1e907e15adb09133c6acc4cc 100644
--- a/content/browser/accessibility/accessibility_event_recorder_win.cc
+++ b/content/browser/accessibility/accessibility_event_recorder_win.cc
@@ -27,10 +27,10 @@ namespace {
std::string RoleVariantToString(const base::win::ScopedVariant& role) {
if (role.type() == VT_I4) {
- return base::UTF16ToUTF8(IAccessibleRoleToString(V_I4(&role)));
+ return base::UTF16ToUTF8(IAccessibleRoleToString(V_I4(role.ptr())));
} else if (role.type() == VT_BSTR) {
return base::UTF16ToUTF8(
- base::string16(V_BSTR(&role), SysStringLen(V_BSTR(&role))));
+ base::string16(V_BSTR(role.ptr()), SysStringLen(V_BSTR(role.ptr()))));
}
return std::string();
}

Powered by Google App Engine
This is Rietveld 408576698