mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 03:53:33 +08:00
clang-tidy: enable readability-delete-null-pointer and fix
This commit is contained in:
@@ -53,9 +53,7 @@ RingBuffer::RingBuffer(unsigned num_items, size_t item_size) :
|
||||
|
||||
RingBuffer::~RingBuffer()
|
||||
{
|
||||
if (_buf != nullptr) {
|
||||
delete[] _buf;
|
||||
}
|
||||
delete[] _buf;
|
||||
}
|
||||
|
||||
unsigned
|
||||
|
||||
Reference in New Issue
Block a user