Skip to content
Snippets Groups Projects

MuPatPrimitives+MuonTrackSteeringTools: Lifetime management update

Merged Scott Snyder requested to merge ssnyder/athena:lifetime.MuPatPrimitives-20250213 into main
  1. Feb 13, 2025
    • sss's avatar
      MuonTrackSteeringTools: Clean up cppcheck warning suppression · b9de08f7
      sss authored
          
      Have addToTrash return a (bare) pointer to the object just added.
      Avoids having a pattern in the caller where it looks like a dangling
      pointer is retained from a unique_ptr.
          
      Allows getting rid of a cppcheck warning suppression.
      b9de08f7
    • sss's avatar
      MuPatPrimitives: Lifetime management update · 0721d0b8
      sss authored
      Have addToTrash return a (bare) pointer to the object just added.
      Avoids having a pattern in the caller where it looks like a dangling
      pointer is retained from a unique_ptr.
      0721d0b8
Loading