diff options
author | David Robillard <d@drobilla.net> | 2024-07-17 07:32:58 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-07-18 17:29:04 -0400 |
commit | f8b5ebceeed89454f3ac5c6a98b3ecfbd76b55ff (patch) | |
tree | e5adbb0f0c61dc3a62748590ded77f10d5a9ee00 /test | |
parent | b2d78db908f35d963c84bcbe697f9cf9943019a8 (diff) | |
download | raul-f8b5ebceeed89454f3ac5c6a98b3ecfbd76b55ff.tar.gz raul-f8b5ebceeed89454f3ac5c6a98b3ecfbd76b55ff.tar.bz2 raul-f8b5ebceeed89454f3ac5c6a98b3ecfbd76b55ff.zip |
Remove redundant member initialization
I guess we'll side with clang-tidy on this one, over the somewhat notorious
Weffc++.
Diffstat (limited to 'test')
-rw-r--r-- | test/.clang-tidy | 1 | ||||
-rw-r--r-- | test/ringbuffer_test.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
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<RingBuffer> ring{}; + std::unique_ptr<RingBuffer> ring; size_t n_writes{0}; }; |