Skip to content

Commit

Permalink
[OCTREE] Delete the default parameter 'max_depth_arg' for all end ite…
Browse files Browse the repository at this point in the history
…rator.
  • Loading branch information
frozar committed Dec 25, 2017
1 parent 642954b commit 42faab9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions octree/include/pcl/octree/octree_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ namespace pcl
return Iterator (this, max_depth_arg? max_depth_arg : this->octree_depth_);
};

const Iterator end (unsigned int max_depth_arg = 0u)
const Iterator end ()
{
return Iterator (this, max_depth_arg? max_depth_arg : this->octree_depth_ , NULL);
return Iterator (this, 0, NULL);
};

// Octree leaf node iterators
Expand All @@ -129,9 +129,9 @@ namespace pcl
return LeafNodeIterator (this, max_depth_arg? max_depth_arg : this->octree_depth_);
};

const LeafNodeIterator leaf_end (unsigned int max_depth_arg = 0u)
const LeafNodeIterator leaf_end ()
{
return LeafNodeIterator (this, max_depth_arg? max_depth_arg : this->octree_depth_, NULL);
return LeafNodeIterator (this, 0, NULL);
};

// Octree depth-first iterators
Expand All @@ -143,9 +143,9 @@ namespace pcl
return DepthFirstIterator (this, max_depth_arg? max_depth_arg : this->octree_depth_);
};

const DepthFirstIterator depth_end (unsigned int max_depth_arg = 0u)
const DepthFirstIterator depth_end ()
{
return DepthFirstIterator (this, max_depth_arg? max_depth_arg : this->octree_depth_, NULL);
return DepthFirstIterator (this, 0, NULL);
};

// Octree breadth-first iterators
Expand All @@ -157,9 +157,9 @@ namespace pcl
return BreadthFirstIterator (this, max_depth_arg? max_depth_arg : this->octree_depth_);
};

const BreadthFirstIterator breadth_end (unsigned int max_depth_arg = 0u)
const BreadthFirstIterator breadth_end ()
{
return BreadthFirstIterator (this, max_depth_arg? max_depth_arg : this->octree_depth_, NULL);
return BreadthFirstIterator (this, 0, NULL);
};


Expand Down

0 comments on commit 42faab9

Please sign in to comment.