From 4ca49d8f2f510f6376a91751d5734df6927d9f5b Mon Sep 17 00:00:00 2001 From: markdroth Date: Fri, 1 Dec 2023 00:45:36 +0000 Subject: [PATCH] Automated change: Fix sanity tests --- src/core/lib/gprpp/ref_counted.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/core/lib/gprpp/ref_counted.h b/src/core/lib/gprpp/ref_counted.h index 294f0230525..5eaf5cda0f1 100644 --- a/src/core/lib/gprpp/ref_counted.h +++ b/src/core/lib/gprpp/ref_counted.h @@ -330,9 +330,8 @@ class RefCounted : public Impl { // RefIfNonZero() for const types. GRPC_MUST_USE_RESULT RefCountedPtr RefIfNonZero() const { - return RefCountedPtr(refs_.RefIfNonZero() - ? static_cast(this) - : nullptr); + return RefCountedPtr( + refs_.RefIfNonZero() ? static_cast(this) : nullptr); } GRPC_MUST_USE_RESULT RefCountedPtr RefIfNonZero( const DebugLocation& location, const char* reason) const { @@ -362,8 +361,8 @@ class RefCounted : public Impl { friend class RefCountedPtr; void IncrementRefCount() const { refs_.Ref(); } - void IncrementRefCount(const DebugLocation& location, const char* reason) - const { + void IncrementRefCount(const DebugLocation& location, + const char* reason) const { refs_.Ref(location, reason); }