Skip to content

Commit 494f76c

Browse files
committed
Fix code checker report
1 parent b20c426 commit 494f76c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Detectors/EMCAL/calib/include/EMCALCalib/CellRecalibrator.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class CellRecalibrator
6262
public:
6363
/// \class CellTypeException
6464
/// \brief Handling of invalid cell types in calibration
65-
class CellTypeException : public std::exception
65+
class CellTypeException final : public std::exception
6666
{
6767
public:
6868
/// \brief Constructor
@@ -73,7 +73,7 @@ class CellRecalibrator
7373

7474
/// \brief Get error message of the exception
7575
/// \return Error message
76-
const char* what() const noexcept final
76+
[[nodiscard]] char const* what() const noexcept final
7777
{
7878
return "Only possible to calibrate cells of type high gain or low gain";
7979
}
@@ -208,4 +208,4 @@ std::ostream& operator<<(std::ostream& in, const CellRecalibrator& calib);
208208

209209
} // namespace o2
210210

211-
#endif // !ALCEO2_EMCAL_CELLRECALIBRATOR_H
211+
#endif // !ALCEO2_EMCAL_CELLRECALIBRATOR_H

0 commit comments

Comments
 (0)