Skip to content

Commit

Permalink
Get data by const reference
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Sep 29, 2021
1 parent f1864af commit 17fafe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scenario/src/gazebo/src/Link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ bool Link::applyWorldWrench(const std::array<double, 3>& force,
assert(entityWithSimTime != ignition::gazebo::kNullEntity);

// Get the current simulated time
auto& now = utils::getExistingComponentData<
const auto& now = utils::getExistingComponentData<
ignition::gazebo::components::SimulatedTime>(m_ecm, entityWithSimTime);

// Create a new wrench with duration
Expand Down

0 comments on commit 17fafe5

Please sign in to comment.