From 1e1a6c72985b193d5a963615cfcf6a0e623d0340 Mon Sep 17 00:00:00 2001 From: Le Quang Anh <43576719+Toefinder@users.noreply.github.com> Date: Thu, 17 Mar 2022 16:49:18 +0100 Subject: [PATCH] Fix: correct order of initialization list Non-static data members should be initialized in the order they were declared in the class definition. For good practice, we should keep all the data members in good order. --- src/path-planner/states-path-finder.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/path-planner/states-path-finder.cc b/src/path-planner/states-path-finder.cc index 3a8bf97..364621a 100644 --- a/src/path-planner/states-path-finder.cc +++ b/src/path-planner/states-path-finder.cc @@ -99,12 +99,12 @@ namespace hpp { const core::RoadmapPtr_t& roadmap) : PathPlanner(problem, roadmap), problem_ (HPP_STATIC_PTR_CAST(const manipulation::Problem, problem)), - constraints_(), index_(), sameRightHandSide_(), optData_(0x0), + constraints_(), index_(), sameRightHandSide_(), + stricterConstraints_(), optData_(0x0), idxSol_(0), lastBuiltTransitions_(), skipColAnalysis_(false), - goalDefinedByConstraints_(false), + goalConstraints_(), goalDefinedByConstraints_(false), q1_(0x0), q2_(0x0), configList_(), idxConfigList_(0), nTryConfigList_(0), solved_(false), interrupt_(false), - stricterConstraints_(), weak_() { gatherGraphConstraints (); -- GitLab