clang-tidy: partially fix hicpp-explicit-conversions

This commit is contained in:
Daniel Agar
2019-10-27 19:25:34 -04:00
parent a7f330075a
commit 9f4258f6ff
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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; }
+1 -1
View File
@@ -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 */
+1 -1
View File
@@ -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 */