Skip to content

Commit 7127443

Browse files
committed
fix returnByReference performance comment from MegaLinter
1 parent 946df43 commit 7127443

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PWGEM/PhotonMeson/Core/EMCPhotonCut.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ class EMCPhotonCut
130130
kSecondary,
131131
};
132132

133-
std::string getName() const { return name; }
134-
std::string getTitle() const { return title; }
133+
const std::string& getName() const { return name; }
134+
const std::string& getTitle() const { return title; }
135135

136136
static std::array<std::string, static_cast<std::size_t>(EMCPhotonCut::EMCPhotonCuts::kNCuts)> mCutNames;
137137

0 commit comments

Comments
 (0)