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

Unified Diff: base/mac/scoped_authorizationref.h

Issue 988113002: Revert of base: Remove operator& from ScopedAuthorizationRef. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « base/mac/authorization_util.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/scoped_authorizationref.h
diff --git a/base/mac/scoped_authorizationref.h b/base/mac/scoped_authorizationref.h
index 18114883800a53e217b50114e036168a7c0de01b..6413f2e41649849c6cb7153b43e29a2b34a8037e 100644
--- a/base/mac/scoped_authorizationref.h
+++ b/base/mac/scoped_authorizationref.h
@@ -49,7 +49,9 @@
return authorization_;
}
- AuthorizationRef* get_pointer() { return &authorization_; }
+ AuthorizationRef* operator&() {
+ return &authorization_;
+ }
AuthorizationRef get() const {
return authorization_;
« no previous file with comments | « base/mac/authorization_util.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698