diff --git a/src/include/containers/List.hpp b/src/include/containers/List.hpp index 119efa2071..0aa07effde 100644 --- a/src/include/containers/List.hpp +++ b/src/include/containers/List.hpp @@ -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; } diff --git a/src/modules/ekf2/ekf2_main.cpp b/src/modules/ekf2/ekf2_main.cpp index 3b16ec7237..7060c56e67 100644 --- a/src/modules/ekf2/ekf2_main.cpp +++ b/src/modules/ekf2/ekf2_main.cpp @@ -97,7 +97,7 @@ extern "C" __EXPORT int ekf2_main(int argc, char *argv[]); class Ekf2 final : public ModuleBase, public ModuleParams, public px4::WorkItem { public: - Ekf2(bool replay_mode = false); + explicit Ekf2(bool replay_mode = false); ~Ekf2() override; /** @see ModuleBase */ diff --git a/src/modules/sensors/sensors.cpp b/src/modules/sensors/sensors.cpp index 5efcf28592..fb6487ea0e 100644 --- a/src/modules/sensors/sensors.cpp +++ b/src/modules/sensors/sensors.cpp @@ -114,7 +114,7 @@ extern "C" __EXPORT int sensors_main(int argc, char *argv[]); class Sensors : public ModuleBase, public ModuleParams { public: - Sensors(bool hil_enabled); + explicit Sensors(bool hil_enabled); ~Sensors() override; /** @see ModuleBase */