Skip to content

Commit

Permalink
add const and remove old comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Nisarg236 authored Dec 24, 2024
1 parent d21bc2e commit 08cc244
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions costmap_2d/plugins/inflation_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,7 @@ void InflationLayer::updateCosts(costmap_2d::Costmap2D& master_grid, int min_i,
for (std::size_t i = 0; i < dist_bin.size(); ++i)
{
// process all cells at distance dist_bin.first
// unsigned int index = current_cell.index_;
auto& current_cell = dist_bin[i];
const auto& current_cell = dist_bin[i];

unsigned int mx = current_cell.x_;
unsigned int my = current_cell.y_;
Expand Down

0 comments on commit 08cc244

Please sign in to comment.