[Bf-blender-cvs] [4c3941745a2] functions: types don't have to be const everywhere

Jacques Lucke noreply at git.blender.org
Sun Feb 10 20:26:27 CET 2019


Commit: 4c3941745a27259cc6a23aa14519e36b872d61b1
Author: Jacques Lucke
Date:   Thu Feb 7 14:32:02 2019 +0100
Branches: functions
https://developer.blender.org/rB4c3941745a27259cc6a23aa14519e36b872d61b1

types don't have to be const everywhere

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

M	source/blender/functions/c_wrapper.cpp
M	source/blender/functions/core/core.hpp

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

diff --git a/source/blender/functions/c_wrapper.cpp b/source/blender/functions/c_wrapper.cpp
index 0e78fa0c51c..69229e0c411 100644
--- a/source/blender/functions/c_wrapper.cpp
+++ b/source/blender/functions/c_wrapper.cpp
@@ -11,7 +11,7 @@
 
 
 WRAPPERS(BLI::RefCounted<FN::Function> *, FnFunction);
-WRAPPERS(BLI::RefCounted<const FN::Type> *, FnType);
+WRAPPERS(BLI::RefCounted<FN::Type> *, FnType);
 
 WRAPPERS(FN::Tuple *, FnTuple);
 WRAPPERS(const FN::TupleCallBody *, FnCallable);
@@ -79,7 +79,7 @@ void FN_type_free(FnType type)
 
 static FnType get_type_with_increased_refcount(const FN::SharedType &type)
 {
-	BLI::RefCounted<const FN::Type> *typeref = type.refcounter();
+	BLI::RefCounted<FN::Type> *typeref = type.refcounter();
 	typeref->incref();
 	return wrap(typeref);
 }
diff --git a/source/blender/functions/core/core.hpp b/source/blender/functions/core/core.hpp
index 6db5e5f5959..e67702b9fd4 100644
--- a/source/blender/functions/core/core.hpp
+++ b/source/blender/functions/core/core.hpp
@@ -15,7 +15,7 @@ namespace FN {
 	class Signature;
 	class Function;
 
-	using SharedType = Shared<const Type>;
+	using SharedType = Shared<Type>;
 	using SharedFunction = Shared<Function>;
 	using SmallTypeVector = SmallVector<SharedType>;



More information about the Bf-blender-cvs mailing list