From db1be6f91b92459f057c1f5d9d00439df18991ed Mon Sep 17 00:00:00 2001 From: Sven Albrecht Date: Mon, 24 Nov 2014 14:07:19 +0100 Subject: [PATCH] Added const modifiers to OctreePointCloud function - 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 --- octree/include/pcl/octree/octree_pointcloud.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octree/include/pcl/octree/octree_pointcloud.h b/octree/include/pcl/octree/octree_pointcloud.h index 6f424b44342..9f39799ab2b 100644 --- a/octree/include/pcl/octree/octree_pointcloud.h +++ b/octree/include/pcl/octree/octree_pointcloud.h @@ -386,7 +386,7 @@ namespace pcl * \param[out] max_pt upper bound of voxel */ inline void - getVoxelBounds (OctreeIteratorBase& iterator, Eigen::Vector3f &min_pt, Eigen::Vector3f &max_pt) + getVoxelBounds (const OctreeIteratorBase& iterator, Eigen::Vector3f &min_pt, Eigen::Vector3f &max_pt) const { this->genVoxelBoundsFromOctreeKey (iterator.getCurrentOctreeKey (), iterator.getCurrentOctreeDepth (), min_pt, max_pt);