Skip to content

Commit

Permalink
Adjust the Variable types in Nav2_costmap_2d pkg in [nav2_humble] #3891
Browse files Browse the repository at this point in the history
… (#3900)

* image.hpp #3891

* Update image.hpp
  • Loading branch information
GoesM authored Oct 24, 2023
1 parent a137347 commit 7a7c6da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nav2_costmap_2d/include/nav2_costmap_2d/denoise/image.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Image
* Share image data between new and old object.
* Changing data in a new object will affect the given one and vice versa
*/
Image(Image & other);
Image(const Image & other);

/**
* @brief Create image from the other (move constructor)
Expand Down Expand Up @@ -132,7 +132,7 @@ Image<T>::Image(size_t rows, size_t columns, T * data, size_t step)
}

template<class T>
Image<T>::Image(Image & other)
Image<T>::Image(const Image & other)
: data_start_{other.data_start_},
rows_{other.rows_}, columns_{other.columns_}, step_{other.step_} {}

Expand Down

0 comments on commit 7a7c6da

Please sign in to comment.