Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang-tidy modernize-use-equals-default #9485

Merged
merged 2 commits into from
May 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ CameraInterface::CameraInterface():
{
}

CameraInterface::~CameraInterface()
{
}
CameraInterface::~CameraInterface() = default;

void CameraInterface::get_pins()
{
Expand Down
4 changes: 1 addition & 3 deletions src/drivers/distance_sensor/ll40ls/LidarLite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ LidarLite::LidarLite() :
{
}

LidarLite::~LidarLite()
{
}
LidarLite::~LidarLite() = default;

void LidarLite::set_minimum_distance(const float min)
{
Expand Down
2 changes: 1 addition & 1 deletion src/examples/segway/blocks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ BlockWaypointGuidance::BlockWaypointGuidance(SuperBlock *parent, const char *nam
{
}

BlockWaypointGuidance::~BlockWaypointGuidance() {};
BlockWaypointGuidance::~BlockWaypointGuidance() = default;;

void BlockWaypointGuidance::update(
const vehicle_global_position_s &pos,
Expand Down
6 changes: 1 addition & 5 deletions src/lib/drivers/device/integrator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,9 @@ Integrator::Integrator(uint64_t auto_reset_interval, bool coning_compensation) :
_last_delta_alpha(0.0f, 0.0f, 0.0f),
_coning_comp_on(coning_compensation)
{

}

Integrator::~Integrator()
{

}
Integrator::~Integrator() = default;

bool
Integrator::put(uint64_t timestamp, matrix::Vector3f &val, matrix::Vector3f &integral, uint64_t &integral_dt)
Expand Down
4 changes: 1 addition & 3 deletions src/lib/drivers/led/led.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ LED::LED() : CDev("led", LED0_DEVICE_PATH)
init();
}

LED::~LED()
{
}
LED::~LED() = default;

int
LED::init()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
class StateMachineHelperTest : public UnitTest
{
public:
StateMachineHelperTest();
virtual ~StateMachineHelperTest();
StateMachineHelperTest() = default;
virtual ~StateMachineHelperTest() = default;

virtual bool run_tests();

Expand All @@ -57,12 +57,6 @@ class StateMachineHelperTest : public UnitTest
bool isSafeTest();
};

StateMachineHelperTest::StateMachineHelperTest() {
}

StateMachineHelperTest::~StateMachineHelperTest() {
}

bool StateMachineHelperTest::armingStateTransitionTest()
{
// These are the critical values from vehicle_status_s and actuator_armed_s which must be primed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ LandingTargetEstimator::LandingTargetEstimator() :
_check_params(true);
}

LandingTargetEstimator::~LandingTargetEstimator()
{
}
LandingTargetEstimator::~LandingTargetEstimator() = default;

void LandingTargetEstimator::update()
{
Expand Down
Loading