mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 06:03:34 +08:00
c++11 default destructors
This commit is contained in:
@@ -60,7 +60,7 @@ class LED : device::CDev
|
||||
{
|
||||
public:
|
||||
LED();
|
||||
virtual ~LED();
|
||||
virtual ~LED() = default;
|
||||
|
||||
virtual int init();
|
||||
virtual int ioctl(device::file_t *filp, int cmd, unsigned long arg);
|
||||
@@ -72,8 +72,6 @@ LED::LED() : CDev("led", LED0_DEVICE_PATH)
|
||||
init();
|
||||
}
|
||||
|
||||
LED::~LED() = default;
|
||||
|
||||
int
|
||||
LED::init()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user