Skip to content

Commit

Permalink
Added const modifiers to OctreePointCloud function
Browse files Browse the repository at this point in the history
- Added const keyword to function 'OctreePointCloud::getVoxelBounds ()',
  since it internally only calls a 'const' function
  ('OctreePointCloud::genVoxelBoundsFromOctreeKey ()')
- Added const modifier to 'OctreeIterator' input argument of
  'OctreePointCloud::getVoxelBounds ()', since only 'const' functions
  of 'OctreeIterator' are called
  • Loading branch information
SvenAlbrecht committed Nov 24, 2014
1 parent e6d729c commit db1be6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octree/include/pcl/octree/octree_pointcloud.h
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ namespace pcl
* \param[out] max_pt upper bound of voxel
*/
inline void
getVoxelBounds (OctreeIteratorBase<OctreeT>& iterator, Eigen::Vector3f &min_pt, Eigen::Vector3f &max_pt)
getVoxelBounds (const OctreeIteratorBase<OctreeT>& iterator, Eigen::Vector3f &min_pt, Eigen::Vector3f &max_pt) const
{
this->genVoxelBoundsFromOctreeKey (iterator.getCurrentOctreeKey (),
iterator.getCurrentOctreeDepth (), min_pt, max_pt);
Expand Down

0 comments on commit db1be6f

Please sign in to comment.