From f8b5ebceeed89454f3ac5c6a98b3ecfbd76b55ff Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 17 Jul 2024 07:32:58 -0400 Subject: Remove redundant member initialization I guess we'll side with clang-tidy on this one, over the somewhat notorious Weffc++. --- test/.clang-tidy | 1 - test/ringbuffer_test.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'test') diff --git a/test/.clang-tidy b/test/.clang-tidy index cee9dd2..ed0bf6b 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -11,5 +11,4 @@ Checks: > -hicpp-signed-bitwise, -modernize-make-unique, -readability-function-cognitive-complexity, - -readability-redundant-member-init, InheritParentConfig: true diff --git a/test/ringbuffer_test.cpp b/test/ringbuffer_test.cpp index 67b740f..59529e8 100644 --- a/test/ringbuffer_test.cpp +++ b/test/ringbuffer_test.cpp @@ -22,7 +22,7 @@ namespace { using RingBuffer = raul::RingBuffer; struct Context { - std::unique_ptr ring{}; + std::unique_ptr ring; size_t n_writes{0}; }; -- cgit v1.2.1