-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make get_name() return a const reference #1952
Make get_name() return a const reference #1952
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, but does it make sense to change deprecated methods?
hardware_interface/include/hardware_interface/loaned_command_interface.hpp
Outdated
Show resolved
Hide resolved
hardware_interface/include/hardware_interface/loaned_state_interface.hpp
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1952 +/- ##
=======================================
Coverage 87.73% 87.74%
=======================================
Files 122 122
Lines 13010 13010
Branches 1165 1165
=======================================
+ Hits 11414 11415 +1
Misses 1165 1165
+ Partials 431 430 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
57bde07
@christophfroehlich |
e7d2fcc
into
ros-controls:master
This PR provides a simple update: get_name() now returns const std::string& instead of std::string. This avoids unnecessary copies and improves efficiency.