mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 10:03:34 +08:00
clang-tidy: partially fix modernize-use-equals-default
This commit is contained in:
@@ -56,6 +56,7 @@ class FixedwingLandDetector final : public LandDetector
|
||||
{
|
||||
public:
|
||||
FixedwingLandDetector();
|
||||
~FixedwingLandDetector() override = default;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
@@ -60,6 +60,7 @@ class MulticopterLandDetector : public LandDetector
|
||||
{
|
||||
public:
|
||||
MulticopterLandDetector();
|
||||
~MulticopterLandDetector() override = default;
|
||||
|
||||
protected:
|
||||
void _update_params() override;
|
||||
|
||||
@@ -50,6 +50,7 @@ class RoverLandDetector : public LandDetector
|
||||
{
|
||||
public:
|
||||
RoverLandDetector() = default;
|
||||
~RoverLandDetector() override = default;
|
||||
|
||||
protected:
|
||||
bool _get_ground_contact_state() override;
|
||||
|
||||
@@ -46,10 +46,6 @@
|
||||
namespace land_detector
|
||||
{
|
||||
|
||||
VtolLandDetector::VtolLandDetector()
|
||||
{
|
||||
}
|
||||
|
||||
void VtolLandDetector::_update_topics()
|
||||
{
|
||||
MulticopterLandDetector::_update_topics();
|
||||
|
||||
@@ -52,7 +52,8 @@ namespace land_detector
|
||||
class VtolLandDetector : public MulticopterLandDetector
|
||||
{
|
||||
public:
|
||||
VtolLandDetector();
|
||||
VtolLandDetector() = default;
|
||||
~VtolLandDetector() override = default;
|
||||
|
||||
protected:
|
||||
void _update_topics() override;
|
||||
|
||||
@@ -66,10 +66,6 @@ MavlinkULog::MavlinkULog(int datarate, float max_rate_factor, uint8_t target_sys
|
||||
_next_rate_check = _last_sent_time + _rate_calculation_delta_t * 1.e6f;
|
||||
}
|
||||
|
||||
MavlinkULog::~MavlinkULog()
|
||||
{
|
||||
}
|
||||
|
||||
void MavlinkULog::start_ack_received()
|
||||
{
|
||||
if (_waiting_for_initial_ack) {
|
||||
|
||||
@@ -102,7 +102,7 @@ private:
|
||||
|
||||
MavlinkULog(int datarate, float max_rate_factor, uint8_t target_system, uint8_t target_component);
|
||||
|
||||
~MavlinkULog();
|
||||
~MavlinkULog() = default;
|
||||
|
||||
static void lock()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user