From: Jiri Vlasak Date: Tue, 11 Jun 2019 13:46:21 +0000 (+0200) Subject: Reformat X-Git-Tag: v0.7.0~15 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/hubacji1/iamcar.git/commitdiff_plain/d287e0fe594fd352808de47d27d6101c539fb50f?hp=981dd0f6c57c0a1375d1113a0728478c200a11c9 Reformat --- diff --git a/base/rrtbase.cc b/base/rrtbase.cc index 5768286..d8299d2 100644 --- a/base/rrtbase.cc +++ b/base/rrtbase.cc @@ -91,10 +91,10 @@ RRTBase::~RRTBase() delete this->goal_; } -RRTBase::RRTBase(): - root_(new RRTNode()), - goal_(new RRTNode()), - gen_(std::random_device{}()) +RRTBase::RRTBase() + : root_(new RRTNode()) + , goal_(new RRTNode()) + , gen_(std::random_device{}()) { this->nodes_.reserve(NOFNODES); this->nodes_.push_back(this->root_); @@ -102,10 +102,10 @@ RRTBase::RRTBase(): this->add_ixy(this->root_); } -RRTBase::RRTBase(RRTNode *init, RRTNode *goal): - root_(init), - goal_(goal), - gen_(std::random_device{}()) +RRTBase::RRTBase(RRTNode *init, RRTNode *goal) + : root_(init) + , goal_(goal) + , gen_(std::random_device{}()) { this->nodes_.reserve(NOFNODES); this->nodes_.push_back(init); diff --git a/decision_control/rrtplanner.cc b/decision_control/rrtplanner.cc index 49080d1..a3c5f60 100644 --- a/decision_control/rrtplanner.cc +++ b/decision_control/rrtplanner.cc @@ -168,8 +168,8 @@ Karaman2011::Karaman2011() srand(static_cast(time(0))); } -Karaman2011::Karaman2011(RRTNode *init, RRTNode *goal): - RRTBase(init, goal) +Karaman2011::Karaman2011(RRTNode *init, RRTNode *goal) + : RRTBase(init, goal) { srand(static_cast(time(0))); }