mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 11:03:33 +08:00
c++11 default destructors
This commit is contained in:
@@ -12,8 +12,6 @@ CameraInterface::CameraInterface():
|
||||
{
|
||||
}
|
||||
|
||||
CameraInterface::~CameraInterface() = default;
|
||||
|
||||
void CameraInterface::get_pins()
|
||||
{
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ public:
|
||||
/**
|
||||
* Destructor.
|
||||
*/
|
||||
virtual ~CameraInterface();
|
||||
virtual ~CameraInterface() = default;
|
||||
|
||||
/**
|
||||
* trigger the camera
|
||||
|
||||
@@ -21,10 +21,6 @@ CameraInterfaceGPIO::CameraInterfaceGPIO():
|
||||
setup();
|
||||
}
|
||||
|
||||
CameraInterfaceGPIO::~CameraInterfaceGPIO()
|
||||
{
|
||||
}
|
||||
|
||||
void CameraInterfaceGPIO::setup()
|
||||
{
|
||||
for (unsigned i = 0, t = 0; i < arraySize(_pins); i++) {
|
||||
|
||||
@@ -16,7 +16,7 @@ class CameraInterfaceGPIO : public CameraInterface
|
||||
{
|
||||
public:
|
||||
CameraInterfaceGPIO();
|
||||
virtual ~CameraInterfaceGPIO();
|
||||
virtual ~CameraInterfaceGPIO() = default;
|
||||
|
||||
void trigger(bool trigger_on_true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user