diff options
author | Mark D. Roth <roth@google.com> | 2018-07-26 14:58:27 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2018-07-26 14:58:27 -0700 |
commit | 78aca7bf85fee5eb9c47b430ce20452cec1faf2d (patch) | |
tree | fc52dbfe59779ead0bc96807ffdfc6adfaed7d22 /src/core/lib/gprpp | |
parent | 32b8a11b258e6bf35398c6c60d3c2b4ac2d40cc6 (diff) |
clang-format
Diffstat (limited to 'src/core/lib/gprpp')
-rw-r--r-- | src/core/lib/gprpp/ref_counted_ptr.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/core/lib/gprpp/ref_counted_ptr.h b/src/core/lib/gprpp/ref_counted_ptr.h index 7b64ec56bd..91ca8eae63 100644 --- a/src/core/lib/gprpp/ref_counted_ptr.h +++ b/src/core/lib/gprpp/ref_counted_ptr.h @@ -37,7 +37,9 @@ class RefCountedPtr { // If value is non-null, we take ownership of a ref to it. template <typename Y> - explicit RefCountedPtr(Y* value) { value_ = value; } + explicit RefCountedPtr(Y* value) { + value_ = value; + } // Move support. RefCountedPtr(RefCountedPtr&& other) { @@ -128,7 +130,9 @@ class RefCountedPtr { } template <typename Y> - bool operator==(const Y* other) const { return value_ == other; } + bool operator==(const Y* other) const { + return value_ == other; + } bool operator==(std::nullptr_t) const { return value_ == nullptr; } @@ -138,7 +142,9 @@ class RefCountedPtr { } template <typename Y> - bool operator!=(const Y* other) const { return value_ != other; } + bool operator!=(const Y* other) const { + return value_ != other; + } bool operator!=(std::nullptr_t) const { return value_ != nullptr; } |