diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2016-08-03 20:40:03 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2016-08-03 20:40:03 -0400 |
commit | 03bff896bd18b71c9a2d8e0b163647b1cd64b871 (patch) | |
tree | 516f04cc95ab90e11fc4113121cd1b16f1cb91f5 /indra/newview/llmaterialmgr.h | |
parent | acdb050ce5e672a6e5c83ef6e95257ce68934d1b (diff) |
MAINT-6584: Use RAII classes to manage helper object lifespans.
Use boost::scoped_ptr instead of raw pointers to LLKDUMemSource,
LLKDUDecodeState, kdu_coords and kdu_dims so cleanup is simpler, and automated
on destruction of LLImageJ2CKDU.
Replace pointer to kdu_codestream with a custom RAII class. kdu_codestream is
itself an opaque handle, so we don't need to add another layer of indirection.
Just wrap it to ensure its destroy() method is reliably called when needed.
Make static instances of LLKDUMessageWarning and LLKDUMessageError
self-register, eliminating the companion static bool and explicit checks in
code.
Diffstat (limited to 'indra/newview/llmaterialmgr.h')
0 files changed, 0 insertions, 0 deletions