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

Unified Diff: base/memory/ref_counted.h

Issue 1997153002: libchrome: Several upstreamable fixes from libchrome Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Addressed feedback Created 4 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
Index: base/memory/ref_counted.h
diff --git a/base/memory/ref_counted.h b/base/memory/ref_counted.h
index 5b866d14c812fc9645a0ef8285c0369ba93301ac..96231af233db45481f5ac7835a9a83a02b600a49 100644
--- a/base/memory/ref_counted.h
+++ b/base/memory/ref_counted.h
@@ -425,12 +425,12 @@ bool operator==(const T* lhs, const scoped_refptr<U>& rhs) {
}
template <typename T>
-bool operator==(const scoped_refptr<T>& lhs, std::nullptr_t null) {
+bool operator==(const scoped_refptr<T>& lhs, std::nullptr_t) {
return !static_cast<bool>(lhs);
}
template <typename T>
-bool operator==(std::nullptr_t null, const scoped_refptr<T>& rhs) {
+bool operator==(std::nullptr_t, const scoped_refptr<T>& rhs) {
return !static_cast<bool>(rhs);
}
« no previous file with comments | « base/logging.cc ('k') | base/memory/shared_memory_android.cc » ('j') | base/metrics/histogram.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698