Skip to content
Snippets Groups Projects
Forked from Alchemy Viewer / Alchemy Viewer
Source project has a limited visibility.
  • Nat Goodspeed's avatar
    2cb09dd4
    SL-16024: Return shared_ptr from LLInstanceTracker::getInstance(). · 2cb09dd4
    Nat Goodspeed authored
    It feels wrong to return a dumb LLInstanceTracker subclass* from getInstance()
    when we use std::shared_ptr and std::weak_ptr internally. But tweak consumers
    to use 'auto' or LLInstanceTracker::ptr_t in case we later revisit this
    decision.
    
    We did add a couple get() calls where it's important to obtain a dumb pointer.
    2cb09dd4
    History
    SL-16024: Return shared_ptr from LLInstanceTracker::getInstance().
    Nat Goodspeed authored
    It feels wrong to return a dumb LLInstanceTracker subclass* from getInstance()
    when we use std::shared_ptr and std::weak_ptr internally. But tweak consumers
    to use 'auto' or LLInstanceTracker::ptr_t in case we later revisit this
    decision.
    
    We did add a couple get() calls where it's important to obtain a dumb pointer.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.