-
Notifications
You must be signed in to change notification settings - Fork 112
Code cleanup #1552
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
Code cleanup #1552
Conversation
Signed-off-by: Maksim Derbasov <ntfs.hard@gmail.com>
| "@gz-math", | ||
| "@gz-utils//:Environment", | ||
| "@gz-utils//:ImplPtr", | ||
| "@gz-utils//:NeverDestroyed", |
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.
was included in 1 file but not used across whole repo. removed in both places
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.
👍
for reference, its last usage was removed in #1456
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.
Yeah, very questionable code from C++ perspective. It could be nice if we can remove it everythere to have a clean valgrind reports C:
| const std::string _groupLabel, | ||
| const std::string _axisLabel, | ||
| sdf::Noise& _noise) | ||
| const std::string &_groupLabel, | ||
| const std::string &_axisLabel, | ||
| sdf::Noise &_noise) |
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.
it's lambda in scope, ok to add missing & here
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.
CI is failing
/github/workspace/src/ParserConfig.cc:43: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/src/Utils.cc:185: Lines should be <= 80 characters long [whitespace/line_length] [2]Signed-off-by: Maksim Derbasov <ntfs.hard@gmail.com>
| "@gz-math", | ||
| "@gz-utils//:Environment", | ||
| "@gz-utils//:ImplPtr", | ||
| "@gz-utils//:NeverDestroyed", |
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.
👍
for reference, its last usage was removed in #1456
🦟 Bug fix
Fixes #
Summary
General code cleanup
Also I found several places where public API are getting
std::stringnot by reference, but by copy:I guess it could be hard to change it right now (w/o breaking ABI) and I have more doubts about returning by-copy strings across whole api... Just sharing, out of scope of this PR
Checklist
codecheckpassed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-bymessages.