mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-07 02:01:35 +08:00
c++11 default destructors
This commit is contained in:
@@ -87,13 +87,12 @@ static struct channel_handler_entry {
|
||||
void *context;
|
||||
} channel_handlers[MAX_TIMER_IO_CHANNELS];
|
||||
|
||||
|
||||
|
||||
static void input_capture_chan_handler(void *context, const io_timers_t *timer, uint32_t chan_index,
|
||||
const timer_io_channels_t *chan,
|
||||
hrt_abstime isrs_time, uint16_t isrs_rcnt)
|
||||
{
|
||||
}
|
||||
|
||||
static void input_capture_bind(unsigned channel, capture_callback_t callback, void *context)
|
||||
{
|
||||
irqstate_t flags = enter_critical_section();
|
||||
|
||||
@@ -212,7 +212,7 @@ class ToneAlarm : public device::CDev
|
||||
{
|
||||
public:
|
||||
ToneAlarm();
|
||||
~ToneAlarm();
|
||||
~ToneAlarm() = default;
|
||||
|
||||
virtual int init();
|
||||
|
||||
@@ -355,10 +355,6 @@ ToneAlarm::ToneAlarm() :
|
||||
_tune_names[TONE_HOME_SET] = "home_set";
|
||||
}
|
||||
|
||||
ToneAlarm::~ToneAlarm()
|
||||
{
|
||||
}
|
||||
|
||||
int
|
||||
ToneAlarm::init()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user