diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-20 17:00:20 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-20 17:03:14 +0300 |
commit | ccc2a7996b836cd255fbb7d7f693f5b958442043 (patch) | |
tree | 0ce38fb1d1d0980dc73fa6d8816f7f4e82ba46df /source/blender/functions/FN_multi_function_signature.hh | |
parent | ed184050b6e787bbfb218e8ad2a0108172a1b68c (diff) |
BLI: add typedefs for containers that use raw allocators
Those are useful when you have to create containers with static
storage duration. If those would use Blender's guarded allocator,
it would report memory leaks, that are not actually leaks.
Diffstat (limited to 'source/blender/functions/FN_multi_function_signature.hh')
-rw-r--r-- | source/blender/functions/FN_multi_function_signature.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/functions/FN_multi_function_signature.hh b/source/blender/functions/FN_multi_function_signature.hh index 4ccceb39503..af5f61fe2ee 100644 --- a/source/blender/functions/FN_multi_function_signature.hh +++ b/source/blender/functions/FN_multi_function_signature.hh @@ -33,9 +33,9 @@ namespace blender::fn { struct MFSignature { std::string function_name; /* Use RawAllocator so that a MultiFunction can have static storage duration. */ - Vector<std::string, 4, RawAllocator> param_names; - Vector<MFParamType, 4, RawAllocator> param_types; - Vector<int, 4, RawAllocator> param_data_indices; + RawVector<std::string> param_names; + RawVector<MFParamType> param_types; + RawVector<int> param_data_indices; int data_index(int param_index) const { |