From a7cdef6c5cb488d53bc54a2f6622f71c9da54b94 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sat, 14 Jan 2017 19:11:40 -0500 Subject: [PATCH] clang-tidy modernize-redundant-void-arg --- EKF/ekf.cpp | 2 +- l1/ecl_l1_pos_controller.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/EKF/ekf.cpp b/EKF/ekf.cpp index c39bff3d09..fedee2669a 100644 --- a/EKF/ekf.cpp +++ b/EKF/ekf.cpp @@ -242,7 +242,7 @@ bool Ekf::update() } } -bool Ekf::initialiseFilter(void) +bool Ekf::initialiseFilter() { // Keep accumulating measurements until we have a minimum of 10 samples for the required sensors diff --git a/l1/ecl_l1_pos_controller.cpp b/l1/ecl_l1_pos_controller.cpp index d1c864d782..5f512e40cf 100644 --- a/l1/ecl_l1_pos_controller.cpp +++ b/l1/ecl_l1_pos_controller.cpp @@ -75,12 +75,12 @@ float ECL_L1_Pos_Controller::switch_distance(float wp_radius) return math::min(wp_radius, _L1_distance); } -bool ECL_L1_Pos_Controller::reached_loiter_target(void) +bool ECL_L1_Pos_Controller::reached_loiter_target() { return _circle_mode; } -float ECL_L1_Pos_Controller::crosstrack_error(void) +float ECL_L1_Pos_Controller::crosstrack_error() { return _crosstrack_error; }