Skip to content

Commit 36ff9be

Browse files
authored
ITS: Remove redundant 'const' from getter methods
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 | ^~~~~ ```
1 parent 86a999e commit 36ff9be

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

  • DataFormats/Detectors/ITSMFT/ITS/include/DataFormatsITS

DataFormats/Detectors/ITSMFT/ITS/include/DataFormatsITS/TrackITS.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,11 @@ class TrackITSExt : public TrackITS
192192
getClusterRefs().setEntries(ncl);
193193
}
194194

195-
GPUhdi() const int getClusterIndex(int lr) const { return mIndex[lr]; }
195+
GPUhdi() int getClusterIndex(int lr) const { return mIndex[lr]; }
196196

197-
GPUh() const int getFirstLayerClusterIndex() const
197+
GPUh() int getFirstLayerClusterIndex() const
198198
{
199-
int firstLayer = getFirstClusterLayer();
200-
return getClusterIndex(firstLayer);
199+
return getClusterIndex(getFirstClusterLayer());
201200
}
202201

203202
GPUhdi() void setExternalClusterIndex(int layer, int idx, bool newCluster = false)

0 commit comments

Comments
 (0)