MuPatPrimitives+MuonTrackSteeringTools: Lifetime management update
- Feb 13, 2025
-
-
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.
-
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.
-