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

Replace const_cast with static_cast where possible #433

Merged
merged 1 commit into from
Jan 31, 2017

Conversation

de-vri-es
Copy link
Contributor

This PR replaces const_cast with static_cast where possible. A const_cast is normally an indication of an API problem somewhere. The replaced casts only add const, so a static_cast will do just fine, with the added benefit that it doesn't look like dangerous things are happening.

Should be fine to pick to I/J. No API or ABI changes.

Copy link
Contributor

@v4hn v4hn left a comment

Choose a reason for hiding this comment

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

I fully agree.
Feel free to merge and cherry-pick this after fixing the failed syntax test.

Thanks!

@de-vri-es
Copy link
Contributor Author

Heh, I did not expect that one letter size difference to matter, but obviously it does :)

I'll wait for CI to pass on all branches and then merge all of them. Probably tomorrow morning.

@de-vri-es
Copy link
Contributor Author

All checks passed, merging.

@de-vri-es de-vri-es merged commit 0ff7142 into moveit:kinetic-devel Jan 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants