-
Notifications
You must be signed in to change notification settings - Fork 613
[PWGHF] Use auto for values returned from functions #13330
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
Conversation
|
O2 linter results: ❌ 0 errors, |
PWGHF/D2H/Tasks/taskLc.cxx
Outdated
| for (const auto& collision : collisions) { | ||
|
|
||
| uint32_t rejectionMask{0}; // 32 bits, in case new ev. selections will be added | ||
| auto rejectionMask{0}; // 32 bits, in case new ev. selections will be added |
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.
Please combine this line with r.h.s. function output - then auto will be deduced properly. Now it is int.
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.
And since it is not supposed to be changed (?) consider making it const.
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 for the feedback! I’ve updated the code accordingly.
add const and const& add author
|
@Rrantu Thanks for the fix. In your future PRs, please add in the title which file or analysis is modified by the PR. |
Fixed hard-coded types for function return values and Added process function without ML with UPC