[Bf-blender-cvs] [199d201ccec] functions: rename

Jacques Lucke noreply at git.blender.org
Fri Sep 6 16:55:47 CEST 2019


Commit: 199d201ccec17dcd8567e3ebcbee4966f87eeb22
Author: Jacques Lucke
Date:   Fri Sep 6 12:21:32 2019 +0200
Branches: functions
https://developer.blender.org/rB199d201ccec17dcd8567e3ebcbee4966f87eeb22

rename

===================================================================

M	source/blender/functions/backends/llvm/llvm_type_info.hpp
M	source/blender/functions/types/external.cpp
M	source/blender/functions/types/falloff.cpp

===================================================================

diff --git a/source/blender/functions/backends/llvm/llvm_type_info.hpp b/source/blender/functions/backends/llvm/llvm_type_info.hpp
index ef73019bc1d..c34e14cdeac 100644
--- a/source/blender/functions/backends/llvm/llvm_type_info.hpp
+++ b/source/blender/functions/backends/llvm/llvm_type_info.hpp
@@ -107,9 +107,9 @@ class PackedLLVMTypeInfo : public TrivialLLVMTypeInfo {
 };
 
 /**
- * Use this when the pointer is just referenced is owned by someone else.
+ * Use this when the pointer is just referenced and is owned by someone else.
  */
-class PointerRefLLVMTypeInfo : public LLVMTypeInfo {
+class ReferencedPointerLLVMTypeInfo : public LLVMTypeInfo {
   llvm::Type *get_type(llvm::LLVMContext &context) const override
   {
     return llvm::Type::getInt8PtrTy(context);
@@ -234,7 +234,7 @@ template<typename T> class SharedImmutablePointerLLVMTypeInfo : public LLVMTypeI
 /**
  * The type has to implement a clone() method.
  */
-template<typename T> class OwningPointerLLVMTypeInfo : public LLVMTypeInfo {
+template<typename T> class UniquePointerLLVMTypeInfo : public LLVMTypeInfo {
  private:
   static T *copy_value(const T *value)
   {
diff --git a/source/blender/functions/types/external.cpp b/source/blender/functions/types/external.cpp
index 97f15f1df9d..eaa0cfdf55c 100644
--- a/source/blender/functions/types/external.cpp
+++ b/source/blender/functions/types/external.cpp
@@ -15,7 +15,7 @@ void INIT_external(Vector<Type *> &types_to_free)
 {
   TYPE_object = new Type("Object");
   TYPE_object->add_extension<CPPTypeInfoForType<Object *>>();
-  TYPE_object->add_extension<PointerRefLLVMTypeInfo>();
+  TYPE_object->add_extension<ReferencedPointerLLVMTypeInfo>();
 
   TYPE_object_list = new_list_type(TYPE_object);
 
diff --git a/source/blender/functions/types/falloff.cpp b/source/blender/functions/types/falloff.cpp
index dc32d0948bd..f4bf5945296 100644
--- a/source/blender/functions/types/falloff.cpp
+++ b/source/blender/functions/types/falloff.cpp
@@ -14,7 +14,7 @@ void INIT_falloff(Vector<Type *> &types_to_free)
 {
   TYPE_falloff = new Type("Falloff");
   TYPE_falloff->add_extension<CPPTypeInfoForType<FalloffW>>();
-  TYPE_falloff->add_extension<OwningPointerLLVMTypeInfo<BKE::Falloff>>();
+  TYPE_falloff->add_extension<UniquePointerLLVMTypeInfo<BKE::Falloff>>();
 
   TYPE_falloff_list = new_list_type(TYPE_falloff);



More information about the Bf-blender-cvs mailing list