Skip to content

Commit

Permalink
Replace this declaration by a structured binding declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
TakanoTaiga committed Dec 11, 2024
1 parent 9c568e9 commit c62d798
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/math/geometry/src/spline/catmull_rom_spline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,8 @@ auto CatmullRomSpline::getTangentVector(const double s) const -> geometry_msgs::
"This message is not originally intended to be displayed, if you see it, please "
"contact the developer of traffic_simulator.");
default:
const auto index_and_s = getCurveIndexAndS(s);
return curves_[index_and_s.first].getTangentVector(index_and_s.second, true);
const auto [index, s_value] = getCurveIndexAndS(s);
return curves_[index].getTangentVector(s_value, true);
}
}

Expand Down

0 comments on commit c62d798

Please sign in to comment.