Skip to content

Commit 14d05e1

Browse files
authored
Fix megalinter
1 parent ad39777 commit 14d05e1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ALICE3/Core/OTFParticle.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ class OTFParticle
153153
int getMotherIndexStop() const { return mIndicesMother[1]; }
154154
int getDaughterIndexStart() const { return mIndicesDaughter[0]; }
155155
int getDaughterIndexStop() const { return mIndicesDaughter[1]; }
156-
std::array<int, 2> getMothers() const { return mIndicesMother; }
157-
std::array<int, 2> getDaughters() const { return mIndicesDaughter; }
156+
const std::array<int, 2>& getMothers() const { return mIndicesMother; }
157+
const std::array<int, 2>& getDaughters() const { return mIndicesDaughter; }
158158
std::span<const int> getMotherSpan() const { return hasMothers() ? std::span<const int>(mIndicesMother.data(), 2) : std::span<const int>(); }
159159

160160
// Checks
@@ -176,7 +176,7 @@ class OTFParticle
176176
void setBitOn(DecayerBits bit) { mBits.set(static_cast<size_t>(bit), true); }
177177
void setBitOff(DecayerBits bit) { mBits.set(static_cast<size_t>(bit), false); }
178178

179-
std::bitset<8> getBits() const { return mBits; }
179+
const std::bitset<8>& getBits() const { return mBits; }
180180
uint8_t getBitsValue() const { return static_cast<uint8_t>(mBits.to_ulong()); }
181181
void setBits(std::bitset<8> bits) { mBits = bits; }
182182

0 commit comments

Comments
 (0)