Skip to content

Commit da62355

Browse files
DIlkhush00mvieth
andauthored
use emplace instead of push (#6121)
* use emplace instead of push * Fix syntax to use emplace instead of push Co-authored-by: Markus Vieth <39675748+mvieth@users.noreply.github.com> --------- Co-authored-by: Markus Vieth <39675748+mvieth@users.noreply.github.com>
1 parent d0ec11d commit da62355

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

segmentation/include/pcl/segmentation/impl/region_growing_rgb.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ pcl::RegionGrowingRGB<PointT, NormalT>::findRegionsKNN (pcl::index_t index, pcl:
338338
{
339339
if (distances[i_seg] < max_dist)
340340
{
341-
segment_neighbours.push (std::make_pair (distances[i_seg], i_seg) );
341+
segment_neighbours.emplace (distances[i_seg], i_seg);
342342
if (segment_neighbours.size () > nghbr_number)
343343
segment_neighbours.pop ();
344344
}

0 commit comments

Comments
 (0)