clang-tidy: enable readability-delete-null-pointer and fix

This commit is contained in:
Daniel Agar
2019-10-28 10:50:31 -04:00
parent 4192414576
commit 744f06cc8f
7 changed files with 8 additions and 27 deletions
+2 -7
View File
@@ -81,13 +81,8 @@ SendEvent::SendEvent() : ModuleParams(nullptr)
SendEvent::~SendEvent()
{
if (_status_display != nullptr) {
delete _status_display;
}
if (_rc_loss_alarm != nullptr) {
delete _rc_loss_alarm;
}
delete _status_display;
delete _rc_loss_alarm;
}
int SendEvent::start()