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

small improvements to node_main.cpp.in #1889

Merged
merged 1 commit into from
Feb 24, 2022

Conversation

alsora
Copy link
Collaborator

@alsora alsora commented Feb 19, 2022

Small improvements identified by clang tidy for the node_main.cpp.in file.

warning: loop variable is copied but only used as const reference; consider making it a const reference [performance-for-range-copy]
1:   for (auto clazz : classes) {

and

warning: implicit conversion 'int' -> bool [readability-implicit-bool-conversion]
1:     if (!(name.compare(class_name))) {

Signed-off-by: Alberto Soragna alberto.soragna@gmail.com

Signed-off-by: Alberto Soragna <alberto.soragna@gmail.com>
Copy link
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

lgtm

@nuclearsandwich
Copy link
Member

@ros-pull-request-builder retest this please

See: ros2/ci#621

Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

Looks good to me with green CI.

@alsora
Copy link
Collaborator Author

alsora commented Feb 23, 2022

CI run:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@alsora
Copy link
Collaborator Author

alsora commented Feb 24, 2022

Merging as the warnings in linux-aarch64 are unrelated and appear also in other builds.

@alsora alsora merged commit 9c5ad79 into master Feb 24, 2022
@alsora alsora deleted the asoragna/improve-components-main branch February 24, 2022 17:30
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.

4 participants