diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2022-12-09 13:16:39 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2022-12-09 13:16:39 -0500 |
commit | 00478b1e7671cb109771a1ad4fb40d47d15ab756 (patch) | |
tree | 6fbad47d1e172ffb9ea1f99fa2927ff6c2e700e9 /indra/newview/skins/default | |
parent | 9f7967fcdc5ccb60bd72e8e9e1b7652dc2058524 (diff) |
DRTVWR-559: Introduce LLInstanceTrackerSubclass mediator class.
Deriving your tracked class T from LLInstanceTracker<T> gives you
T::getInstance() et al. But what about a subclass S derived from T?
S::getInstance() still delivers a pointer to T, requiring explicit downcast.
And so on for other LLInstanceTracker methods.
Instead, derive S from LLInstanceTrackerSubclass<S, T>. This implies that S is
a grandchild class of T, but it also recasts the LLInstanceTracker methods to
deliver results for S rather than for T.
Diffstat (limited to 'indra/newview/skins/default')
0 files changed, 0 insertions, 0 deletions