Skip to content

Commit

Permalink
左辺値参照に変更
Browse files Browse the repository at this point in the history
Co-authored-by: Shota Aoki <[email protected]>
  • Loading branch information
Kuwamai and Shota Aoki authored Nov 2, 2023
1 parent 4404997 commit 2a1d5d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sciurus17_control/src/sciurus17_hardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ std::vector<hardware_interface::StateInterface>
Sciurus17Hardware::export_state_interfaces()
{
std::vector<hardware_interface::StateInterface> state_interfaces;
for (auto joint : info_.joints) {
for (const auto & joint : info_.joints) {
state_interfaces.emplace_back(
hardware_interface::StateInterface(
joint.name, hardware_interface::HW_IF_POSITION, &hw_position_states_[joint.name]));
Expand Down

0 comments on commit 2a1d5d7

Please sign in to comment.