Skip to content

ITS: Remove redundant 'const' from getter methods#15429

Merged
shahor02 merged 1 commit into
devfrom
f3sch-patch-3
May 26, 2026
Merged

ITS: Remove redundant 'const' from getter methods#15429
shahor02 merged 1 commit into
devfrom
f3sch-patch-3

Conversation

@f3sch
Copy link
Copy Markdown
Collaborator

@f3sch f3sch commented May 22, 2026

the redunant const from #15406 qualifiers lead to warnings:

O2/GPU/GPUTracking/Standalone/../../../DataFormats/Detectors/ITSMFT/ITS/include/DataFormatsITS/TrackITS.h:195:12: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  195 |   GPUhdi() const int getClusterIndex(int lr) const { return mIndex[lr]; }
      |            ^~~~~
/O2/GPU/GPUTracking/Standalone/../../../DataFormats/Detectors/ITSMFT/ITS/include/DataFormatsITS/TrackITS.h:197:10: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  197 |   GPUh() const int getFirstLayerClusterIndex() const
      |          ^~~~~

the redunant const from #15406 qualifiers lead to warnings:
```
O2/GPU/GPUTracking/Standalone/../../../DataFormats/Detectors/ITSMFT/ITS/include/DataFormatsITS/TrackITS.h:195:12: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  195 |   GPUhdi() const int getClusterIndex(int lr) const { return mIndex[lr]; }
      |            ^~~~~
/O2/GPU/GPUTracking/Standalone/../../../DataFormats/Detectors/ITSMFT/ITS/include/DataFormatsITS/TrackITS.h:197:10: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
  197 |   GPUh() const int getFirstLayerClusterIndex() const
      |          ^~~~~
```
@f3sch
Copy link
Copy Markdown
Collaborator Author

f3sch commented May 26, 2026

@shahor02 should be trivial, please merge.

@shahor02 shahor02 merged commit ac48d72 into dev May 26, 2026
11 of 12 checks passed
@shahor02 shahor02 deleted the f3sch-patch-3 branch May 26, 2026 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants