[Bf-blender-cvs] [0c15bc41b0d] functions: better naming
Jacques Lucke
noreply at git.blender.org
Sun Mar 24 13:53:00 CET 2019
Commit: 0c15bc41b0d4378b8a73506a64f57fe2d234a6b6
Author: Jacques Lucke
Date: Sun Mar 24 13:52:14 2019 +0100
Branches: functions
https://developer.blender.org/rB0c15bc41b0d4378b8a73506a64f57fe2d234a6b6
better naming
===================================================================
M source/blender/blenlib/BLI_shared.hpp
M source/blender/functions/c_wrapper.cpp
===================================================================
diff --git a/source/blender/blenlib/BLI_shared.hpp b/source/blender/blenlib/BLI_shared.hpp
index 8317536a3ba..5fb62635aa1 100644
--- a/source/blender/blenlib/BLI_shared.hpp
+++ b/source/blender/blenlib/BLI_shared.hpp
@@ -129,7 +129,7 @@ namespace BLI {
return m_object;
}
- T *move_ptr()
+ T *extract_ptr()
{
T *value = m_object;
m_object = nullptr;
diff --git a/source/blender/functions/c_wrapper.cpp b/source/blender/functions/c_wrapper.cpp
index cdc1702842a..bedb47456ea 100644
--- a/source/blender/functions/c_wrapper.cpp
+++ b/source/blender/functions/c_wrapper.cpp
@@ -233,7 +233,7 @@ void FN_tuple_get_fvec3(FnTuple tuple, uint index, float dst[3])
FnFloatList FN_tuple_relocate_out_float_list(FnTuple tuple, uint index)
{
auto list = unwrap(tuple)->relocate_out<SharedFloatList>(index);
- return wrap(list.move_ptr());
+ return wrap(list.extract_ptr());
}
More information about the Bf-blender-cvs
mailing list