mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 09:23:33 +08:00
clang-tidy: enable readability-delete-null-pointer and fix
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user