c++11 default destructors

This commit is contained in:
Daniel Agar
2018-06-30 19:55:08 -04:00
parent c39ac93ca8
commit 02d4405a62
49 changed files with 38 additions and 214 deletions
@@ -78,8 +78,6 @@ LandingTargetEstimator::LandingTargetEstimator() :
_check_params(true);
}
LandingTargetEstimator::~LandingTargetEstimator() = default;
void LandingTargetEstimator::update()
{
_check_params(false);
@@ -67,7 +67,7 @@ class LandingTargetEstimator
public:
LandingTargetEstimator();
virtual ~LandingTargetEstimator();
virtual ~LandingTargetEstimator() = default;
/*
* Get new measurements and update the state estimate
-2
View File
@@ -54,8 +54,6 @@
#include <asm/socket.h>
#endif
MavlinkShell::MavlinkShell() = default;
MavlinkShell::~MavlinkShell()
{
//closing the pipes will stop the thread as well
+1 -1
View File
@@ -48,7 +48,7 @@
class MavlinkShell
{
public:
MavlinkShell();
MavlinkShell() = default;
~MavlinkShell();
@@ -65,8 +65,6 @@ MavlinkFtpTest::MavlinkFtpTest() :
{
}
MavlinkFtpTest::~MavlinkFtpTest() = default;
/// @brief Called before every test to initialize the FTP Server.
void MavlinkFtpTest::_init()
{
@@ -44,7 +44,7 @@ class MavlinkFtpTest : public UnitTest
{
public:
MavlinkFtpTest();
virtual ~MavlinkFtpTest();
virtual ~MavlinkFtpTest() = default;
virtual bool run_tests(void);
@@ -145,14 +145,6 @@ int calc_timer_diff_to_dsp_us(int32_t *time_diff_us)
return 0;
}
px4muorb::KraitRpcWrapper::KraitRpcWrapper()
{
}
px4muorb::KraitRpcWrapper::~KraitRpcWrapper()
{
}
bool px4muorb::KraitRpcWrapper::Initialize()
{
bool rc = true;
@@ -45,12 +45,12 @@ public:
/**
* Constructor
*/
KraitRpcWrapper();
KraitRpcWrapper() = default;
/**
* destructor
*/
~KraitRpcWrapper();
~KraitRpcWrapper() = default;
/**
* Initiatizes the rpc channel px4 muorb
+1 -3
View File
@@ -209,7 +209,7 @@ class ACCELSIM_mag : public VirtDevObj
{
public:
ACCELSIM_mag(ACCELSIM *parent);
~ACCELSIM_mag();
~ACCELSIM_mag() = default;
virtual ssize_t devRead(void *buffer, size_t buflen);
virtual int devIOCTL(unsigned long cmd, unsigned long arg);
@@ -973,8 +973,6 @@ ACCELSIM_mag::ACCELSIM_mag(ACCELSIM *parent) :
m_id.dev_id_s.devtype = DRV_ACC_DEVTYPE_ACCELSIM;
}
ACCELSIM_mag::~ACCELSIM_mag() = default;
ssize_t
ACCELSIM_mag::devRead(void *buffer, size_t buflen)
{
@@ -72,8 +72,6 @@ Standard::Standard(VtolAttitudeControl *attc) :
_params_handles_standard.reverse_delay = param_find("VT_B_REV_DEL");
}
Standard::~Standard() = default;
void
Standard::parameters_update()
{
+1 -1
View File
@@ -55,7 +55,7 @@ class Standard : public VtolType
public:
Standard(VtolAttitudeControl *_att_controller);
~Standard();
~Standard() = default;
virtual void update_vtol_state();
virtual void update_transition_state();
@@ -65,8 +65,6 @@ Tailsitter::Tailsitter(VtolAttitudeControl *attc) :
_params_handles_tailsitter.front_trans_dur_p2 = param_find("VT_TRANS_P2_DUR");
}
Tailsitter::~Tailsitter() = default;
void
Tailsitter::parameters_update()
{
+1 -1
View File
@@ -52,7 +52,7 @@ class Tailsitter : public VtolType
public:
Tailsitter(VtolAttitudeControl *_att_controller);
~Tailsitter();
~Tailsitter() = default;
virtual void update_vtol_state();
virtual void update_transition_state();
@@ -65,8 +65,6 @@ Tiltrotor::Tiltrotor(VtolAttitudeControl *attc) :
_params_handles_tiltrotor.diff_thrust_scale = param_find("VT_FW_DIFTHR_SC");
}
Tiltrotor::~Tiltrotor() = default;
void
Tiltrotor::parameters_update()
{
+1 -1
View File
@@ -50,7 +50,7 @@ class Tiltrotor : public VtolType
public:
Tiltrotor(VtolAttitudeControl *_att_controller);
~Tiltrotor();
~Tiltrotor() = default;
virtual void update_vtol_state();
virtual void update_transition_state();
@@ -76,8 +76,6 @@ VtolType::VtolType(VtolAttitudeControl *att_controller) :
}
}
VtolType::~VtolType() = default;
bool VtolType::init()
{
const char *dev = PWM_OUTPUT0_DEVICE_PATH;
+1 -1
View File
@@ -116,7 +116,7 @@ public:
VtolType(const VtolType &) = delete;
VtolType &operator=(const VtolType &) = delete;
virtual ~VtolType();
virtual ~VtolType() = default;
/**
* Initialise.