Skip to content
Snippets Groups Projects

egammaEnergyCorrectionTool : Fix unchecked dynamic_cast s (Coverity defect)

egammaEnergyCorrectionTool : Fix unchecked dynamic_cast s (Coverity reports that basically we could use ~70 member variables that could be nullptr as we did not check any dynamic_cast ... ).

Basically add an internal "helper" in the anonymous namespace . That does the dynamic_cast and throws if it fails . In the message we can have the name of the TObject we failed to cast from.

Edited by Christos Anastopoulos

Merge request reports

Pipeline #3426409 passed

Pipeline passed for dc723de4 on ATLAS-EGamma:egammaEnergyCorrectionTool_dyn_cast

Approval is optional

Merged by Edward MoyseEdward Moyse 3 years ago (Jan 10, 2022 1:51pm UTC)

Merge details

  • Changes merged into master with ae0d3bbd (commits were squashed).
  • Deleted the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading