mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-22 22:32:11 +08:00
clang-tidy: partially fix hicpp-explicit-conversions
This commit is contained in:
@@ -101,7 +101,7 @@ public:
|
||||
|
||||
struct Iterator {
|
||||
T node;
|
||||
Iterator(T v) : node(v) {}
|
||||
explicit Iterator(T v) : node(v) {}
|
||||
|
||||
operator T() const { return node; }
|
||||
operator T &() { return node; }
|
||||
|
||||
@@ -97,7 +97,7 @@ extern "C" __EXPORT int ekf2_main(int argc, char *argv[]);
|
||||
class Ekf2 final : public ModuleBase<Ekf2>, public ModuleParams, public px4::WorkItem
|
||||
{
|
||||
public:
|
||||
Ekf2(bool replay_mode = false);
|
||||
explicit Ekf2(bool replay_mode = false);
|
||||
~Ekf2() override;
|
||||
|
||||
/** @see ModuleBase */
|
||||
|
||||
@@ -114,7 +114,7 @@ extern "C" __EXPORT int sensors_main(int argc, char *argv[]);
|
||||
class Sensors : public ModuleBase<Sensors>, public ModuleParams
|
||||
{
|
||||
public:
|
||||
Sensors(bool hil_enabled);
|
||||
explicit Sensors(bool hil_enabled);
|
||||
~Sensors() override;
|
||||
|
||||
/** @see ModuleBase */
|
||||
|
||||
Reference in New Issue
Block a user