Blender Git Loki

Git Commits -> Revision 649916f

Revision 649916f by Jacques Lucke (master)
March 7, 2021, 13:24 (GMT)
BLI: make it harder to forget to destruct a value

Instead of returning a raw pointer, `LinearAllocator.construct(...)` now returns
a `destruct_ptr`, which is similar to `unique_ptr`, but does not deallocate
the memory and only calls the destructor instead.

Commit Details:

Full Hash: 649916f0983e4c59201672e6e28dcc7ae1f655b2
Parent Commit: 456d3cc
Lines Changed: +31, -26

5 Modified Paths:

/source/blender/blenlib/BLI_linear_allocator.hh (+4, -4) (Diff)
/source/blender/blenlib/BLI_resource_collector.hh (+4, -3) (Diff)
/source/blender/blenlib/tests/BLI_linear_allocator_test.cc (+1, -1) (Diff)
/source/blender/functions/intern/multi_function_network_evaluation.cc (+20, -16) (Diff)
/source/blender/modifiers/intern/MOD_nodes.cc (+2, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021