Skip to content

Commit

Permalink
Const-ify ProbabilityGrid::ToProto (cartographer-project#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
catskul authored and damonkohler committed Apr 25, 2017
1 parent af22dc6 commit 245e356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cartographer/mapping_2d/probability_grid.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class ProbabilityGrid {
}
}

proto::ProbabilityGrid ToProto() {
proto::ProbabilityGrid ToProto() const {
proto::ProbabilityGrid result;
*result.mutable_limits() = cartographer::mapping_2d::ToProto(limits_);
result.mutable_cells()->Reserve(cells_.size());
Expand Down

0 comments on commit 245e356

Please sign in to comment.