Skip to content

Commit 7a7c6da

Browse files
authored
Adjust the Variable types in Nav2_costmap_2d pkg in [nav2_humble] ros-navigation#3891 (ros-navigation#3900)
* image.hpp ros-navigation#3891 * Update image.hpp
1 parent a137347 commit 7a7c6da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nav2_costmap_2d/include/nav2_costmap_2d/denoise/image.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Image
5050
* Share image data between new and old object.
5151
* Changing data in a new object will affect the given one and vice versa
5252
*/
53-
Image(Image & other);
53+
Image(const Image & other);
5454

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

134134
template<class T>
135-
Image<T>::Image(Image & other)
135+
Image<T>::Image(const Image & other)
136136
: data_start_{other.data_start_},
137137
rows_{other.rows_}, columns_{other.columns_}, step_{other.step_} {}
138138

0 commit comments

Comments
 (0)