Skip to content
Snippets Groups Projects

PileUpTools: Fix cppcheck warning.

Merged Scott Snyder requested to merge ssnyder/athena:cppcheck.PileUpTools-20230925 into main

We were getting a pointer from a unique_ptr that is then recorded in SG. Use std::launder to hide this fact from cppcheck so that it doesn't warn that the pointer lives past the end of the unique_ptr. But also fix the case where we may have actually used a dangling pointer if the record failed.

Merge request reports

Loading
Loading

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