Skip to content

[tmva][sofie] Improve const correctness in shape iteration - #23173

Merged
guitargeek merged 1 commit into
root-project:masterfrom
Yongyanliu65:patch-3
Aug 28, 2026
Merged

guitargeek merged 1 commit into
root-project:masterfrom
Yongyanliu65:patch-3

Conversation

@Yongyanliu65

Copy link
Copy Markdown
Contributor

Summary

Use a const reference when iterating over dimensions in
ConvertShapeToLength, since the shape dimensions are not modified.

This makes the read-only intent explicit without changing behavior.

@Yongyanliu65
Yongyanliu65 requested a review from lmoneta as a code owner August 28, 2026 00:39

@guitargeek guitargeek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! Consider making more substantial code improvements in one go in the future, as it's not sustainable to bloat the history with these one-line changes recommended by code linters.

@guitargeek
guitargeek merged commit 3d1f573 into root-project:master Aug 28, 2026
25 of 27 checks passed
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.

2 participants