summaryrefslogtreecommitdiff
path: root/indra/newview/llviewertexturelist.cpp
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2022-12-09 13:16:39 -0500
committerNat Goodspeed <nat@lindenlab.com>2022-12-09 13:16:39 -0500
commit00478b1e7671cb109771a1ad4fb40d47d15ab756 (patch)
tree6fbad47d1e172ffb9ea1f99fa2927ff6c2e700e9 /indra/newview/llviewertexturelist.cpp
parent9f7967fcdc5ccb60bd72e8e9e1b7652dc2058524 (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/llviewertexturelist.cpp')
0 files changed, 0 insertions, 0 deletions