mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 17:11:36 +08:00
c++11 default destructors
This commit is contained in:
@@ -67,9 +67,8 @@ class HMC5883_I2C : public device::I2C
|
||||
{
|
||||
public:
|
||||
HMC5883_I2C(int bus);
|
||||
virtual ~HMC5883_I2C();
|
||||
virtual ~HMC5883_I2C() = default;
|
||||
|
||||
virtual int init();
|
||||
virtual int read(unsigned address, void *data, unsigned count);
|
||||
virtual int write(unsigned address, void *data, unsigned count);
|
||||
|
||||
@@ -92,17 +91,6 @@ HMC5883_I2C::HMC5883_I2C(int bus) :
|
||||
_device_id.devid_s.devtype = DRV_MAG_DEVTYPE_HMC5883;
|
||||
}
|
||||
|
||||
HMC5883_I2C::~HMC5883_I2C()
|
||||
{
|
||||
}
|
||||
|
||||
int
|
||||
HMC5883_I2C::init()
|
||||
{
|
||||
/* this will call probe() */
|
||||
return I2C::init();
|
||||
}
|
||||
|
||||
int
|
||||
HMC5883_I2C::ioctl(unsigned operation, unsigned &arg)
|
||||
{
|
||||
|
||||
@@ -74,7 +74,7 @@ class HMC5883_SPI : public device::SPI
|
||||
{
|
||||
public:
|
||||
HMC5883_SPI(int bus, uint32_t device);
|
||||
virtual ~HMC5883_SPI();
|
||||
virtual ~HMC5883_SPI() = default;
|
||||
|
||||
virtual int init();
|
||||
virtual int read(unsigned address, void *data, unsigned count);
|
||||
@@ -96,10 +96,6 @@ HMC5883_SPI::HMC5883_SPI(int bus, uint32_t device) :
|
||||
_device_id.devid_s.devtype = DRV_MAG_DEVTYPE_HMC5883;
|
||||
}
|
||||
|
||||
HMC5883_SPI::~HMC5883_SPI()
|
||||
{
|
||||
}
|
||||
|
||||
int
|
||||
HMC5883_SPI::init()
|
||||
{
|
||||
|
||||
@@ -65,9 +65,8 @@ class LIS3MDL_I2C : public device::I2C
|
||||
{
|
||||
public:
|
||||
LIS3MDL_I2C(int bus);
|
||||
virtual ~LIS3MDL_I2C();
|
||||
virtual ~LIS3MDL_I2C() = default;
|
||||
|
||||
virtual int init();
|
||||
virtual int ioctl(unsigned operation, unsigned &arg);
|
||||
virtual int read(unsigned address, void *data, unsigned count);
|
||||
virtual int write(unsigned address, void *data, unsigned count);
|
||||
@@ -92,17 +91,6 @@ LIS3MDL_I2C::LIS3MDL_I2C(int bus) :
|
||||
_device_id.devid_s.devtype = DRV_MAG_DEVTYPE_LIS3MDL;
|
||||
}
|
||||
|
||||
LIS3MDL_I2C::~LIS3MDL_I2C()
|
||||
{
|
||||
}
|
||||
|
||||
int
|
||||
LIS3MDL_I2C::init()
|
||||
{
|
||||
/* this will call probe() */
|
||||
return I2C::init();
|
||||
}
|
||||
|
||||
int
|
||||
LIS3MDL_I2C::ioctl(unsigned operation, unsigned &arg)
|
||||
{
|
||||
|
||||
@@ -68,7 +68,7 @@ class LIS3MDL_SPI : public device::SPI
|
||||
{
|
||||
public:
|
||||
LIS3MDL_SPI(int bus, uint32_t device);
|
||||
virtual ~LIS3MDL_SPI();
|
||||
virtual ~LIS3MDL_SPI() = default;
|
||||
|
||||
virtual int init();
|
||||
virtual int ioctl(unsigned operation, unsigned &arg);
|
||||
@@ -91,10 +91,6 @@ LIS3MDL_SPI::LIS3MDL_SPI(int bus, uint32_t device) :
|
||||
_device_id.devid_s.devtype = DRV_MAG_DEVTYPE_LIS3MDL;
|
||||
}
|
||||
|
||||
LIS3MDL_SPI::~LIS3MDL_SPI()
|
||||
{
|
||||
}
|
||||
|
||||
int
|
||||
LIS3MDL_SPI::init()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user