Skip to content
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

Mark Component::Clone as const #1300

Merged
merged 3 commits into from
Jan 25, 2022
Merged

Mark Component::Clone as const #1300

merged 3 commits into from
Jan 25, 2022

Conversation

mjcarroll
Copy link
Contributor

Split from #1249. Mark Clone method as const.

This is likely not back-portable as it breaks API. Any components that implement a custom Clone will fail to compile. There are none in the main ign-gazebo codebase, but there is a possibility of external users doing so.

Signed-off-by: Michael Carroll [email protected]

Signed-off-by: Michael Carroll <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
@mjcarroll mjcarroll requested a review from chapulina as a code owner January 18, 2022 21:21
@github-actions github-actions bot added the 🌱 garden Ignition Garden label Jan 18, 2022
@mjcarroll mjcarroll mentioned this pull request Jan 18, 2022
8 tasks
Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. It may be worth dropping a note on the migration guide.

@codecov
Copy link

codecov bot commented Jan 18, 2022

Codecov Report

Merging #1300 (c08215d) into main (cfb83a2) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1300      +/-   ##
==========================================
- Coverage   62.02%   62.01%   -0.02%     
==========================================
  Files         276      276              
  Lines       23030    23020      -10     
==========================================
- Hits        14285    14276       -9     
+ Misses       8745     8744       -1     
Impacted Files Coverage Δ
include/ignition/gazebo/components/Component.hh 100.00% <100.00%> (ø)
src/systems/air_pressure/AirPressure.cc 73.23% <100.00%> (-0.74%) ⬇️
src/systems/altimeter/Altimeter.cc 73.97% <100.00%> (-0.70%) ⬇️
src/systems/force_torque/ForceTorque.cc 73.72% <100.00%> (ø)
src/systems/imu/Imu.cc 72.61% <100.00%> (-0.64%) ⬇️
src/systems/logical_camera/LogicalCamera.cc 75.64% <100.00%> (-0.61%) ⬇️
src/systems/magnetometer/Magnetometer.cc 70.88% <100.00%> (-0.72%) ⬇️
src/Server.cc 86.74% <0.00%> (+0.60%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 892c296...c08215d. Read the comment docs.

Signed-off-by: Michael Carroll <[email protected]>
@mjcarroll
Copy link
Contributor Author

It may be worth dropping a note on the migration guide.

73d213b

@mjcarroll
Copy link
Contributor Author

@osrf-jenkins retest this please

@chapulina chapulina merged commit a40d428 into main Jan 25, 2022
@chapulina chapulina deleted the const_component_clone branch January 25, 2022 00:23
@j-rivero j-rivero mentioned this pull request Sep 16, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌱 garden Ignition Garden
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants