Skip to content

Commit c6728b1

Browse files
committed
new instances replaced by const ref
1 parent d9ec66e commit c6728b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ed_sensor_integration/src/kinect/ray_tracer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ RayTraceResult ray_trace(const ed::WorldModel& world, const geo::Pose3D& raytrac
6767
res.active_entity_ = e->id().str();
6868
for (const auto& volume : e->volumes())
6969
{
70-
std::string name = volume.first;
71-
geo::ShapeConstPtr shape = volume.second;
70+
const std::string& name = volume.first;
71+
const geo::ShapeConstPtr& shape = volume.second;
7272
if (name == "on_top_of")
7373
{
7474
ROS_DEBUG("Raytrace on_top_of array of %s included", e->id().c_str());

0 commit comments

Comments
 (0)