summaryrefslogtreecommitdiff
path: root/indra/newview/llappdelegate-objc.mm
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2016-08-03 20:40:03 -0400
committerNat Goodspeed <nat@lindenlab.com>2016-08-03 20:40:03 -0400
commit03bff896bd18b71c9a2d8e0b163647b1cd64b871 (patch)
tree516f04cc95ab90e11fc4113121cd1b16f1cb91f5 /indra/newview/llappdelegate-objc.mm
parentacdb050ce5e672a6e5c83ef6e95257ce68934d1b (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/llappdelegate-objc.mm')
0 files changed, 0 insertions, 0 deletions