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

Unified Diff: base/win/scoped_comptr.h

Issue 2824773002: Rename ScopedComPtr::get() to ScopedComPtr::Get() (Closed)
Patch Set: Update to 5293966 Created 3 years, 8 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/test/test_shortcut_win.cc ('k') | base/win/scoped_comptr_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/scoped_comptr.h
diff --git a/base/win/scoped_comptr.h b/base/win/scoped_comptr.h
index ac704e095347e688fb4d55fc5390955001d84fe0..74c429d703cfa63138b28a0654ce56bf7356e713 100644
--- a/base/win/scoped_comptr.h
+++ b/base/win/scoped_comptr.h
@@ -35,7 +35,7 @@ class ScopedComPtr {
ptr_->AddRef();
}
- ScopedComPtr(const ScopedComPtr<Interface, interface_id>& p) : ptr_(p.get()) {
+ ScopedComPtr(const ScopedComPtr<Interface, interface_id>& p) : ptr_(p.Get()) {
if (ptr_)
ptr_->AddRef();
}
@@ -49,7 +49,7 @@ class ScopedComPtr {
Reset();
}
- Interface* get() const { return ptr_; }
+ Interface* Get() const { return ptr_; }
explicit operator bool() const { return ptr_ != nullptr; }
@@ -183,12 +183,12 @@ class ScopedComPtr {
}
bool operator==(const ScopedComPtr<Interface, interface_id>& rhs) const {
- return ptr_ == rhs.get();
+ return ptr_ == rhs.Get();
}
template <typename U>
bool operator==(const ScopedComPtr<U>& rhs) const {
- return ptr_ == rhs.get();
+ return ptr_ == rhs.Get();
}
template <typename U>
@@ -197,12 +197,12 @@ class ScopedComPtr {
}
bool operator!=(const ScopedComPtr<Interface, interface_id>& rhs) const {
- return ptr_ != rhs.get();
+ return ptr_ != rhs.Get();
}
template <typename U>
bool operator!=(const ScopedComPtr<U>& rhs) const {
- return ptr_ != rhs.get();
+ return ptr_ != rhs.Get();
}
template <typename U>
@@ -222,7 +222,7 @@ class ScopedComPtr {
template <typename T, typename U>
bool operator==(const T* lhs, const ScopedComPtr<U>& rhs) {
- return lhs == rhs.get();
+ return lhs == rhs.Get();
}
template <typename T>
@@ -252,7 +252,7 @@ bool operator!=(std::nullptr_t null, const ScopedComPtr<T>& rhs) {
template <typename T>
std::ostream& operator<<(std::ostream& out, const ScopedComPtr<T>& p) {
- return out << p.get();
+ return out << p.Get();
}
// Helper to make IID_PPV_ARGS work with ScopedComPtr.
« no previous file with comments | « base/test/test_shortcut_win.cc ('k') | base/win/scoped_comptr_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698