diff options
author | Campbell Barton <campbell@blender.org> | 2022-06-01 08:06:21 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-06-01 08:38:48 +0300 |
commit | 0f29f2c3e630a9f092bf02fd4669d27aef4b5921 (patch) | |
tree | aad267315a6ab21fa90713044923a29ba8701ae0 /source/blender/blenkernel/BKE_attribute_access.hh | |
parent | 44bac4c8ccf19cb5941435115b8f89a9d14e9c23 (diff) |
Cleanup: remove redundant const qualifiers for scalar & enum types
Diffstat (limited to 'source/blender/blenkernel/BKE_attribute_access.hh')
-rw-r--r-- | source/blender/blenkernel/BKE_attribute_access.hh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/blenkernel/BKE_attribute_access.hh b/source/blender/blenkernel/BKE_attribute_access.hh index d7826a0e17a..fef91d6f75d 100644 --- a/source/blender/blenkernel/BKE_attribute_access.hh +++ b/source/blender/blenkernel/BKE_attribute_access.hh @@ -376,7 +376,7 @@ class CustomDataAttributes { * value for the type will be used. */ blender::GVArray get_for_read(const AttributeIDRef &attribute_id, - const eCustomDataType data_type, + eCustomDataType data_type, const void *default_value) const; template<typename T> @@ -389,10 +389,8 @@ class CustomDataAttributes { } std::optional<blender::GMutableSpan> get_for_write(const AttributeIDRef &attribute_id); - bool create(const AttributeIDRef &attribute_id, const eCustomDataType data_type); - bool create_by_move(const AttributeIDRef &attribute_id, - const eCustomDataType data_type, - void *buffer); + bool create(const AttributeIDRef &attribute_id, eCustomDataType data_type); + bool create_by_move(const AttributeIDRef &attribute_id, eCustomDataType data_type, void *buffer); bool remove(const AttributeIDRef &attribute_id); /** |