mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-24 15:00:35 +08:00
clang-tidy: partially fix hicpp-use-equals-delete
This commit is contained in:
@@ -106,6 +106,9 @@ class BlockLocalPositionEstimator : public control::SuperBlock, public ModulePar
|
||||
//
|
||||
public:
|
||||
|
||||
BlockLocalPositionEstimator(const BlockLocalPositionEstimator &) = delete;
|
||||
BlockLocalPositionEstimator operator=(const BlockLocalPositionEstimator &) = delete;
|
||||
|
||||
// constants
|
||||
enum {X_x = 0, X_y, X_z, X_vx, X_vy, X_vz, X_bx, X_by, X_bz, X_tz, n_x};
|
||||
enum {U_ax = 0, U_ay, U_az, n_u};
|
||||
@@ -154,8 +157,6 @@ public:
|
||||
virtual ~BlockLocalPositionEstimator() = default;
|
||||
|
||||
private:
|
||||
BlockLocalPositionEstimator(const BlockLocalPositionEstimator &) = delete;
|
||||
BlockLocalPositionEstimator operator=(const BlockLocalPositionEstimator &) = delete;
|
||||
|
||||
// methods
|
||||
// ----------------------------
|
||||
|
||||
@@ -76,17 +76,17 @@ public:
|
||||
|
||||
// Singleton pattern
|
||||
static uORBTest::UnitTest &instance();
|
||||
~UnitTest() {}
|
||||
~UnitTest() = default;
|
||||
int test();
|
||||
template<typename S> int latency_test(orb_id_t T, bool print);
|
||||
int info();
|
||||
|
||||
private:
|
||||
UnitTest() : pubsubtest_passed(false), pubsubtest_print(false) {}
|
||||
|
||||
// Disallow copy
|
||||
UnitTest(const uORBTest::UnitTest & /*unused*/) = delete;
|
||||
|
||||
private:
|
||||
UnitTest() : pubsubtest_passed(false), pubsubtest_print(false) {}
|
||||
|
||||
static int pubsubtest_threadEntry(int argc, char *argv[]);
|
||||
int pubsublatency_main();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user