Skip to content

Commit

Permalink
Merge pull request #2499 from csukuangfj/fix-2470
Browse files Browse the repository at this point in the history
Swap the header in pcl::PointCloud::swap
  • Loading branch information
SergioRAgostinho authored Oct 2, 2018
2 parents c2ddc6b + c2d6a80 commit 9e6acc6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/include/pcl/point_cloud.h
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ namespace pcl
inline void
swap (PointCloud<PointT> &rhs)
{
std::swap (header, rhs.header);
this->points.swap (rhs.points);
std::swap (width, rhs.width);
std::swap (height, rhs.height);
Expand Down

0 comments on commit 9e6acc6

Please sign in to comment.