clang-tidy remove redundant init

This commit is contained in:
Daniel Agar
2017-06-02 19:35:18 -04:00
parent 8a681397bf
commit 5d626bd940
13 changed files with 8 additions and 39 deletions
+1 -3
View File
@@ -53,9 +53,7 @@ namespace control
Block::Block(SuperBlock *parent, const char *name) :
_name(name),
_parent(parent),
_dt(0),
_subscriptions(),
_params()
_dt(0)
{
if (getParent() != nullptr) {
getParent()->getChildren().add(this);
+1 -5
View File
@@ -103,11 +103,7 @@ class __EXPORT SuperBlock :
public:
friend class Block;
// methods
SuperBlock(SuperBlock *parent, const char *name) :
Block(parent, name),
_children()
{
}
SuperBlock(SuperBlock *parent, const char *name) : Block(parent, name) {}
virtual ~SuperBlock() {};
virtual void setDt(float dt);
virtual void updateParams()
-1
View File
@@ -59,7 +59,6 @@ RunwayTakeoff::RunwayTakeoff() :
_init_yaw(0),
_climbout(false),
_throttle_ramp_time(2 * 1e6),
_start_wp(),
_runway_takeoff_enabled(this, "TKOFF"),
_heading_mode(this, "HDG"),
_nav_alt(this, "NAV_ALT"),