diff options
author | Jacques Lucke <jacques@blender.org> | 2021-06-28 14:13:52 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-06-28 14:16:32 +0300 |
commit | 7d281a4f7d354d270fc9c9f3c7a65b4409362aa0 (patch) | |
tree | 6a749a4833bdf543a10d95881fcca52ba310248b /source/blender/functions/FN_generic_pointer.hh | |
parent | f7e2559fd649610881b1749b6d30cc2ba9fcbdb6 (diff) |
Functions: improve CPPType
* Reduce code duplication.
* Give methods more standardized names (e.g. `move_to_initialized` -> `move_assign`).
* Support wrapping arbitrary C++ types, even those that e.g. are not copyable.
Diffstat (limited to 'source/blender/functions/FN_generic_pointer.hh')
-rw-r--r-- | source/blender/functions/FN_generic_pointer.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/functions/FN_generic_pointer.hh b/source/blender/functions/FN_generic_pointer.hh index f88ff09f916..c65c42f26c9 100644 --- a/source/blender/functions/FN_generic_pointer.hh +++ b/source/blender/functions/FN_generic_pointer.hh @@ -70,7 +70,7 @@ class GMutablePointer { { BLI_assert(this->is_type<T>()); T value; - type_->relocate_to_initialized(data_, &value); + type_->relocate_assign(data_, &value); data_ = nullptr; type_ = nullptr; return value; |