Skip to content

Commit

Permalink
HashedVoxelPointCloud: add missing reserve()
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Jan 28, 2024
1 parent 1cbb441 commit 5cae589
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mola_metric_maps/src/HashedVoxelPointCloud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,8 @@ void HashedVoxelPointCloud::internal_insertPointCloud3D(
{
MRPT_TRY_START

voxels_.reserve(voxels_.size() + num_pts);

for (std::size_t i = 0; i < num_pts; i++)
{
// Transform the point from the scan reference to its global 3D
Expand Down

0 comments on commit 5cae589

Please sign in to comment.