From 58e0cbf9fb67186ee67be5bb71aba36e9cfebe7f Mon Sep 17 00:00:00 2001 From: Noah Eisen Date: Thu, 7 Jun 2018 22:17:14 -0700 Subject: Enable the performance-* clang-tidy checks --- test/core/gprpp/ref_counted_ptr_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/core/gprpp') diff --git a/test/core/gprpp/ref_counted_ptr_test.cc b/test/core/gprpp/ref_counted_ptr_test.cc index c810345166..aa30b72282 100644 --- a/test/core/gprpp/ref_counted_ptr_test.cc +++ b/test/core/gprpp/ref_counted_ptr_test.cc @@ -66,14 +66,14 @@ TEST(RefCountedPtr, MoveAssignment) { TEST(RefCountedPtr, CopyConstructor) { RefCountedPtr foo(New()); - RefCountedPtr foo2(foo); + const RefCountedPtr& foo2(foo); EXPECT_NE(nullptr, foo.get()); EXPECT_EQ(foo.get(), foo2.get()); } TEST(RefCountedPtr, CopyAssignment) { RefCountedPtr foo(New()); - RefCountedPtr foo2 = foo; + const RefCountedPtr& foo2 = foo; EXPECT_NE(nullptr, foo.get()); EXPECT_EQ(foo.get(), foo2.get()); } -- cgit v1.2.3